Remove unintended returns
This commit is contained in:
parent
3a29555772
commit
6f6c5c07f0
1 changed files with 7 additions and 7 deletions
|
@ -22,7 +22,7 @@ var BrowserWindowProxy = (function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
BrowserWindowProxy.remove = function (guestId) {
|
BrowserWindowProxy.remove = function (guestId) {
|
||||||
return delete this.proxies[guestId]
|
delete this.proxies[guestId]
|
||||||
}
|
}
|
||||||
|
|
||||||
function BrowserWindowProxy (guestId1) {
|
function BrowserWindowProxy (guestId1) {
|
||||||
|
@ -70,11 +70,11 @@ var BrowserWindowProxy = (function () {
|
||||||
if (targetOrigin == null) {
|
if (targetOrigin == null) {
|
||||||
targetOrigin = '*'
|
targetOrigin = '*'
|
||||||
}
|
}
|
||||||
return ipcRenderer.send('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_POSTMESSAGE', this.guestId, message, targetOrigin, window.location.origin)
|
ipcRenderer.send('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_POSTMESSAGE', this.guestId, message, targetOrigin, window.location.origin)
|
||||||
}
|
}
|
||||||
|
|
||||||
BrowserWindowProxy.prototype['eval'] = function (...args) {
|
BrowserWindowProxy.prototype['eval'] = function (...args) {
|
||||||
return ipcRenderer.send.apply(ipcRenderer, ['ELECTRON_GUEST_WINDOW_MANAGER_WEB_CONTENTS_METHOD', this.guestId, 'executeJavaScript'].concat(args))
|
ipcRenderer.send.apply(ipcRenderer, ['ELECTRON_GUEST_WINDOW_MANAGER_WEB_CONTENTS_METHOD', this.guestId, 'executeJavaScript'].concat(args))
|
||||||
}
|
}
|
||||||
|
|
||||||
return BrowserWindowProxy
|
return BrowserWindowProxy
|
||||||
|
@ -207,7 +207,7 @@ ipcRenderer.on('ELECTRON_GUEST_WINDOW_POSTMESSAGE', function (event, sourceId, m
|
||||||
|
|
||||||
// Forward history operations to browser.
|
// Forward history operations to browser.
|
||||||
var sendHistoryOperation = function (...args) {
|
var sendHistoryOperation = function (...args) {
|
||||||
return ipcRenderer.send.apply(ipcRenderer, ['ELECTRON_NAVIGATION_CONTROLLER'].concat(args))
|
ipcRenderer.send.apply(ipcRenderer, ['ELECTRON_NAVIGATION_CONTROLLER'].concat(args))
|
||||||
}
|
}
|
||||||
|
|
||||||
var getHistoryOperation = function (...args) {
|
var getHistoryOperation = function (...args) {
|
||||||
|
@ -215,15 +215,15 @@ var getHistoryOperation = function (...args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
window.history.back = function () {
|
window.history.back = function () {
|
||||||
return sendHistoryOperation('goBack')
|
sendHistoryOperation('goBack')
|
||||||
}
|
}
|
||||||
|
|
||||||
window.history.forward = function () {
|
window.history.forward = function () {
|
||||||
return sendHistoryOperation('goForward')
|
sendHistoryOperation('goForward')
|
||||||
}
|
}
|
||||||
|
|
||||||
window.history.go = function (offset) {
|
window.history.go = function (offset) {
|
||||||
return sendHistoryOperation('goToOffset', offset)
|
sendHistoryOperation('goToOffset', offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
Object.defineProperty(window.history, 'length', {
|
Object.defineProperty(window.history, 'length', {
|
||||||
|
|
Loading…
Reference in a new issue