fix setup on server edition

This commit is contained in:
zadam 2020-05-08 10:24:57 +02:00
parent 0e4eec10b9
commit 48c843c087
2 changed files with 1 additions and 3 deletions

View file

@ -6,9 +6,8 @@ const utils = require('../services/utils');
async function setupPage(req, res) { async function setupPage(req, res) {
if (await sqlInit.isDbInitialized()) { if (await sqlInit.isDbInitialized()) {
const windowService = require('../services/window');
if (utils.isElectron()) { if (utils.isElectron()) {
const windowService = require('../services/window');
await windowService.createMainWindow(); await windowService.createMainWindow();
windowService.closeSetupWindow(); windowService.closeSetupWindow();
} }

View file

@ -165,6 +165,5 @@ module.exports = {
createMainWindow, createMainWindow,
createSetupWindow, createSetupWindow,
closeSetupWindow, closeSetupWindow,
createExtraWindow,
registerGlobalShortcuts registerGlobalShortcuts
}; };