Added support for window.location on window.open windows
This commit is contained in:
parent
b10f196d16
commit
7569d180c9
3 changed files with 37 additions and 2 deletions
|
@ -57,6 +57,15 @@ var BrowserWindowProxy = (function() {
|
|||
return ipcRenderer.send('ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'blur');
|
||||
};
|
||||
|
||||
Object.defineProperty(BrowserWindowProxy.prototype, 'location', {
|
||||
get: function() {
|
||||
return ipcRenderer.sendSync('ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'getURL');
|
||||
},
|
||||
set: function(url) {
|
||||
return ipcRenderer.sendSync('ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'loadURL', url);
|
||||
}
|
||||
});
|
||||
|
||||
BrowserWindowProxy.prototype.postMessage = function(message, targetOrigin) {
|
||||
if (targetOrigin == null) {
|
||||
targetOrigin = '*';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue