Remove linter errors
This commit is contained in:
parent
8098ca3b66
commit
97dd680b32
2 changed files with 1 additions and 2 deletions
|
@ -1018,7 +1018,7 @@ describe('BrowserWindow module', function () {
|
||||||
w = new BrowserWindow({
|
w = new BrowserWindow({
|
||||||
show: false,
|
show: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
sandbox: true,
|
sandbox: true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const initialWebContents = webContents.getAllWebContents()
|
const initialWebContents = webContents.getAllWebContents()
|
||||||
|
|
|
@ -246,7 +246,6 @@ ipcMain.on('create-window-with-options-cycle', (event) => {
|
||||||
event.returnValue = window.id
|
event.returnValue = window.id
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
ipcMain.on('prevent-next-new-window', (event, id) => {
|
ipcMain.on('prevent-next-new-window', (event, id) => {
|
||||||
webContents.fromId(id).once('new-window', event => event.preventDefault())
|
webContents.fromId(id).once('new-window', event => event.preventDefault())
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue