Поправка бага
This commit is contained in:
@@ -21,7 +21,7 @@ function initRoutes(app, wss, config) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.mode !== 'omnireader' && config.mode !== 'liberama')
|
if (config.mode !== 'reader' && config.mode !== 'omnireader' && config.mode !== 'liberama')
|
||||||
throw new Error(`Unknown server mode: ${config.mode}`);
|
throw new Error(`Unknown server mode: ${config.mode}`);
|
||||||
|
|
||||||
initStatic(app, config);
|
initStatic(app, config);
|
||||||
|
|||||||
Reference in New Issue
Block a user