Browse Source

fix: specify nodeIntegration=true for Electron 5 compat (#257)

main
Samuel Attard 7 years ago
committed by GitHub
parent
commit
cbb3b10fb2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      main.js

8
main.js

@ -7,7 +7,13 @@ let mainWindow
function createWindow () { function createWindow () {
// Create the browser window. // 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. // and load the index.html of the app.
mainWindow.loadFile('index.html') mainWindow.loadFile('index.html')

Loading…
Cancel
Save