fix: default prop of location should be empty str
This commit is contained in:
parent
fc4e10b6c0
commit
ca7dec2082
4 changed files with 8 additions and 7 deletions
|
@ -3480,7 +3480,7 @@ describe('BrowserWindow module', () => {
|
|||
iw.loadURL('about:blank')
|
||||
iw.webContents.executeJavaScript(`
|
||||
const opened = window.open()
|
||||
openedLocation = opened.location
|
||||
openedLocation = opened.location.href
|
||||
opened.close()
|
||||
window.postMessage({openedLocation}, '*')
|
||||
`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue