Поправка бага

This commit is contained in:
Book Pauk
2022-12-18 13:22:55 +07:00
parent 6393c24575
commit c3e099f095

View File

@@ -21,7 +21,7 @@ function initRoutes(app, wss, config) {
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}`);
initStatic(app, config);