mirror of
https://github.com/zadam/trilium.git
synced 2025-02-24 15:05:31 +08:00
fix setup on server edition
This commit is contained in:
parent
0e4eec10b9
commit
48c843c087
2 changed files with 1 additions and 3 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -165,6 +165,5 @@ module.exports = {
|
||||||
createMainWindow,
|
createMainWindow,
|
||||||
createSetupWindow,
|
createSetupWindow,
|
||||||
closeSetupWindow,
|
closeSetupWindow,
|
||||||
createExtraWindow,
|
|
||||||
registerGlobalShortcuts
|
registerGlobalShortcuts
|
||||||
};
|
};
|
Loading…
Reference in a new issue