fix detection of desktop build in setup page, closes #787

This commit is contained in:
zadam
2019-12-27 20:22:46 +01:00
parent 0affcf5ad2
commit d2177cd517
2 changed files with 77 additions and 109 deletions

View File

@@ -67,7 +67,11 @@ async function createSetupWindow() {
width: 800,
height: 800,
title: 'Trilium Notes Setup',
icon: getIcon()
icon: getIcon(),
webPreferences: {
// necessary for e.g. utils.isElectron()
nodeIntegration: true
}
});
setupWindow.setMenuBarVisibility(false);