|
@@ -40,28 +40,28 @@ var BrowserWindowProxy = (function () {
|
|
|
}
|
|
|
|
|
|
BrowserWindowProxy.prototype.close = function () {
|
|
|
- return ipcRenderer.send('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_CLOSE', this.guestId)
|
|
|
+ ipcRenderer.send('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_CLOSE', this.guestId)
|
|
|
}
|
|
|
|
|
|
BrowserWindowProxy.prototype.focus = function () {
|
|
|
- return ipcRenderer.send('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'focus')
|
|
|
+ ipcRenderer.send('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'focus')
|
|
|
}
|
|
|
|
|
|
BrowserWindowProxy.prototype.blur = function () {
|
|
|
- return ipcRenderer.send('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'blur')
|
|
|
+ ipcRenderer.send('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'blur')
|
|
|
}
|
|
|
|
|
|
BrowserWindowProxy.prototype.print = function () {
|
|
|
- return ipcRenderer.send('ELECTRON_GUEST_WINDOW_MANAGER_WEB_CONTENTS_METHOD', this.guestId, 'print')
|
|
|
+ ipcRenderer.send('ELECTRON_GUEST_WINDOW_MANAGER_WEB_CONTENTS_METHOD', this.guestId, 'print')
|
|
|
}
|
|
|
|
|
|
Object.defineProperty(BrowserWindowProxy.prototype, 'location', {
|
|
|
get: function () {
|
|
|
- return ipcRenderer.sendSync('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'getURL')
|
|
|
+ return ipcRenderer.sendSync('ELECTRON_GUEST_WINDOW_MANAGER_WEB_CONTENTS_METHOD_SYNC', this.guestId, 'getURL')
|
|
|
},
|
|
|
set: function (url) {
|
|
|
url = resolveURL(url)
|
|
|
- return ipcRenderer.sendSync('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_METHOD', this.guestId, 'loadURL', url)
|
|
|
+ return ipcRenderer.sendSync('ELECTRON_GUEST_WINDOW_MANAGER_WEB_CONTENTS_METHOD_SYNC', this.guestId, 'loadURL', url)
|
|
|
}
|
|
|
})
|
|
|
|