mirror of
https://github.com/zadam/trilium.git
synced 2025-02-24 06:54:44 +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) {
|
||||
if (await sqlInit.isDbInitialized()) {
|
||||
const windowService = require('../services/window');
|
||||
|
||||
if (utils.isElectron()) {
|
||||
const windowService = require('../services/window');
|
||||
await windowService.createMainWindow();
|
||||
windowService.closeSetupWindow();
|
||||
}
|
||||
|
|
|
@ -165,6 +165,5 @@ module.exports = {
|
|||
createMainWindow,
|
||||
createSetupWindow,
|
||||
closeSetupWindow,
|
||||
createExtraWindow,
|
||||
registerGlobalShortcuts
|
||||
};
|
Loading…
Reference in a new issue