Chore: clean up unnecessary arguments

This commit is contained in:
Aram Becker 2023-05-02 11:21:49 +02:00
parent 3c73322fc1
commit 433876f724
2 changed files with 2 additions and 3 deletions

View file

@ -83,7 +83,7 @@ class Server {
this.apiRouter = new ApiRouter(this) this.apiRouter = new ApiRouter(this)
this.hlsRouter = new HlsRouter(this.db, this.auth, this.playbackSessionManager) this.hlsRouter = new HlsRouter(this.db, this.auth, this.playbackSessionManager)
this.staticRouter = new StaticRouter(this.db) 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 Logger.logManager = this.logManager

View file

@ -3,9 +3,8 @@ const Path = require('path')
const Logger = require('../Logger') const Logger = require('../Logger')
class ClientRouter { class ClientRouter {
constructor(appRoot, clientPort = 3000, routerBasePath = '') { constructor(appRoot, routerBasePath = '') {
this.appRoot = appRoot this.appRoot = appRoot
this.clientPort = clientPort
this.routerBasePath = routerBasePath this.routerBasePath = routerBasePath
this.client = null this.client = null