From 433876f724c6a503a442e019591961c7e10ac151 Mon Sep 17 00:00:00 2001 From: Aram Becker Date: Tue, 2 May 2023 11:21:49 +0200 Subject: [PATCH] Chore: clean up unnecessary arguments --- server/Server.js | 2 +- server/routers/ClientRouter.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/server/Server.js b/server/Server.js index 09c9498fe..97f689c77 100644 --- a/server/Server.js +++ b/server/Server.js @@ -83,7 +83,7 @@ class Server { this.apiRouter = new ApiRouter(this) this.hlsRouter = new HlsRouter(this.db, this.auth, this.playbackSessionManager) this.staticRouter = new StaticRouter(this.db) - this.clientRouter = new ClientRouter(global.appRoot, global.ClientPort, global.RouterBasePath) + this.clientRouter = new ClientRouter(global.appRoot, global.RouterBasePath) Logger.logManager = this.logManager diff --git a/server/routers/ClientRouter.js b/server/routers/ClientRouter.js index 81b8fa672..f8bb29f6f 100644 --- a/server/routers/ClientRouter.js +++ b/server/routers/ClientRouter.js @@ -3,9 +3,8 @@ const Path = require('path') const Logger = require('../Logger') class ClientRouter { - constructor(appRoot, clientPort = 3000, routerBasePath = '') { + constructor(appRoot, routerBasePath = '') { this.appRoot = appRoot - this.clientPort = clientPort this.routerBasePath = routerBasePath this.client = null