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
|
@ -164,12 +164,12 @@ instance, failing to do so may result in unexpected behavior. For example:
|
|||
|
||||
```javascript
|
||||
myBrowserWindow.webContents.on('new-window', (event, url) => {
|
||||
event.preventDefault()
|
||||
const win = new BrowserWindow({ show: false })
|
||||
win.once('ready-to-show', () => win.show())
|
||||
win.loadURL(url)
|
||||
event.newGuest = win
|
||||
});
|
||||
event.preventDefault()
|
||||
const win = new BrowserWindow({show: false})
|
||||
win.once('ready-to-show', () => win.show())
|
||||
win.loadURL(url)
|
||||
event.newGuest = win
|
||||
})
|
||||
```
|
||||
|
||||
#### Event: 'will-navigate'
|
||||
|
|
Loading…
Reference in a new issue