diff --git a/electron.js b/electron.js index b8ca095..e43b961 100644 --- a/electron.js +++ b/electron.js @@ -9,6 +9,10 @@ const isDev = isEnvSet ? parseInt(process.env.ELECTRON_IS_DEV, 10) === 1 : !app. function createWindow() { mainWindow = new electron.BrowserWindow({ + webPreferences: { + // Allow access to NodeJS APIs from this window. + nodeIntegration: true + }, // Hide the window until maximize() is called width: 1600, height: 900,