Fix examples
w -> win
This commit is contained in:
parent
5819acfd3d
commit
589585a269
1 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ app.on('ready', () => {
|
||||||
sandbox: true
|
sandbox: true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
w.loadURL('http://google.com')
|
win.loadURL('http://google.com')
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ let win
|
||||||
app.on('ready', () => {
|
app.on('ready', () => {
|
||||||
// no need to pass `sandbox: true` since `--enable-sandbox` was enabled.
|
// no need to pass `sandbox: true` since `--enable-sandbox` was enabled.
|
||||||
win = new BrowserWindow()
|
win = new BrowserWindow()
|
||||||
w.loadURL('http://google.com')
|
win.loadURL('http://google.com')
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ app.on('ready', () => {
|
||||||
preload: 'preload.js'
|
preload: 'preload.js'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
w.loadURL('http://google.com')
|
win.loadURL('http://google.com')
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue