Skip to content

Commit

Permalink
docs: update docs/tutorial/first-app.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miniak committed Apr 22, 2019
1 parent 86b323b commit c72fd2d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions docs/tutorial/first-app.md
Expand Up @@ -109,7 +109,13 @@ const { app, BrowserWindow } = require('electron')

function createWindow () {
// Create the browser window.
let win = new BrowserWindow({ width: 800, height: 600 })
let win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true
}
})

// and load the index.html of the app.
win.loadFile('index.html')
Expand All @@ -132,7 +138,13 @@ let win

function createWindow () {
// Create the browser window.
win = new BrowserWindow({ width: 800, height: 600 })
let win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true
}
})

// and load the index.html of the app.
win.loadFile('index.html')
Expand Down

0 comments on commit c72fd2d

Please sign in to comment.