Skip to content

Commit

Permalink
Merge pull request #162 from electron/miniak/node-integration
Browse files Browse the repository at this point in the history
feat: support upcoming Electron 5.0 with nodeIntegration disabled by default
  • Loading branch information
felixrieseberg committed Jan 21, 2019
2 parents 88ce4a7 + 2061b26 commit c1ae0ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/content/main.ts
Expand Up @@ -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')
Expand Down

0 comments on commit c1ae0ec

Please sign in to comment.