use window.location instead of location
This commit is contained in:
parent
6425ef4261
commit
47a61e9f27
3 changed files with 5 additions and 5 deletions
|
@ -70,7 +70,7 @@ var BrowserWindowProxy = (function () {
|
|||
if (targetOrigin == null) {
|
||||
targetOrigin = '*'
|
||||
}
|
||||
return ipcRenderer.send('ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_POSTMESSAGE', this.guestId, message, targetOrigin, location.origin)
|
||||
return ipcRenderer.send('ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_POSTMESSAGE', this.guestId, message, targetOrigin, window.location.origin)
|
||||
}
|
||||
|
||||
BrowserWindowProxy.prototype['eval'] = function (...args) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue