mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Fix user counter not working
This commit is contained in:
@@ -56,7 +56,7 @@ export function createServer(callback: () => void): Server {
|
||||
router.use("/api/", apiCspMiddleware);
|
||||
router.use(express.json());
|
||||
|
||||
if (config.userCounterURL) app.use(userCounter);
|
||||
if (config.userCounterURL) router.use(userCounter);
|
||||
|
||||
// Setup pretty JSON
|
||||
if (config.mode === "development") app.set("json spaces", 2);
|
||||
|
||||
Reference in New Issue
Block a user