From 48c843c0875fdcc05a82219acef51082f8105ded Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 8 May 2020 10:24:57 +0200 Subject: [PATCH] fix setup on server edition --- src/routes/setup.js | 3 +-- src/services/window.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/routes/setup.js b/src/routes/setup.js index d57b619b9..4ba55699c 100644 --- a/src/routes/setup.js +++ b/src/routes/setup.js @@ -6,9 +6,8 @@ const utils = require('../services/utils'); async function setupPage(req, res) { if (await sqlInit.isDbInitialized()) { - const windowService = require('../services/window'); - if (utils.isElectron()) { + const windowService = require('../services/window'); await windowService.createMainWindow(); windowService.closeSetupWindow(); } diff --git a/src/services/window.js b/src/services/window.js index f9f2c8b78..c85a02ad1 100644 --- a/src/services/window.js +++ b/src/services/window.js @@ -165,6 +165,5 @@ module.exports = { createMainWindow, createSetupWindow, closeSetupWindow, - createExtraWindow, registerGlobalShortcuts }; \ No newline at end of file