|
|
|
@ -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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|