Fix linting errors around spacing and semicolons
This commit is contained in:
parent
035d9df29b
commit
e85d2f00dd
1 changed files with 6 additions and 6 deletions
|
@ -165,11 +165,11 @@ instance, failing to do so may result in unexpected behavior. For example:
|
||||||
```javascript
|
```javascript
|
||||||
myBrowserWindow.webContents.on('new-window', (event, url) => {
|
myBrowserWindow.webContents.on('new-window', (event, url) => {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
const win = new BrowserWindow({ show: false })
|
const win = new BrowserWindow({show: false})
|
||||||
win.once('ready-to-show', () => win.show())
|
win.once('ready-to-show', () => win.show())
|
||||||
win.loadURL(url)
|
win.loadURL(url)
|
||||||
event.newGuest = win
|
event.newGuest = win
|
||||||
});
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Event: 'will-navigate'
|
#### Event: 'will-navigate'
|
||||||
|
|
Loading…
Reference in a new issue