Merge pull request #6861 from megahertz/bug_window_location
Apply resolveURL when set a location of a window opened by window.open()
This commit is contained in:
commit
faebe5259d
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ var BrowserWindowProxy = (function () {
|
|||
return ipcRenderer.sendSync('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'getURL')
|
||||
},
|
||||
set: function (url) {
|
||||
url = resolveURL(url)
|
||||
return ipcRenderer.sendSync('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'loadURL', url)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue