diff --git a/main.js b/main.js index 3fa4035..b64ad2b 100644 --- a/main.js +++ b/main.js @@ -7,7 +7,13 @@ let mainWindow function createWindow () { // Create the browser window. - mainWindow = new BrowserWindow({width: 800, height: 600}) + mainWindow = new BrowserWindow({ + width: 800, + height: 600, + webPreferences: { + nodeIntegration: true + } + }) // and load the index.html of the app. mainWindow.loadFile('index.html')