Set preload script on opened windows
This commit is contained in:
parent
fdb1fddc26
commit
208be2a542
1 changed files with 2 additions and 0 deletions
|
@ -1005,6 +1005,7 @@ describe('BrowserWindow module', function () {
|
|||
preload: preload
|
||||
}
|
||||
})
|
||||
ipcRenderer.send('set-web-preferences-on-next-new-window', w.webContents.id, 'preload', preload)
|
||||
let htmlPath = path.join(fixtures, 'api', 'sandbox.html?window-open')
|
||||
const pageUrl = 'file://' + htmlPath
|
||||
w.loadURL(pageUrl)
|
||||
|
@ -1035,6 +1036,7 @@ describe('BrowserWindow module', function () {
|
|||
preload: preload
|
||||
}
|
||||
})
|
||||
ipcRenderer.send('set-web-preferences-on-next-new-window', w.webContents.id, 'preload', preload)
|
||||
let htmlPath = path.join(fixtures, 'api', 'sandbox.html?window-open-external')
|
||||
const pageUrl = 'file://' + htmlPath
|
||||
let popupWindow
|
||||
|
|
Loading…
Reference in a new issue