Remove unintended returns

This commit is contained in:
Kevin Sawicki 2016-11-25 10:05:12 -08:00
parent 3a29555772
commit 6f6c5c07f0

View file

@ -22,7 +22,7 @@ var BrowserWindowProxy = (function () {
}
BrowserWindowProxy.remove = function (guestId) {
return delete this.proxies[guestId]
delete this.proxies[guestId]
}
function BrowserWindowProxy (guestId1) {
@ -70,11 +70,11 @@ var BrowserWindowProxy = (function () {
if (targetOrigin == null) {
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) {
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
@ -207,7 +207,7 @@ ipcRenderer.on('ELECTRON_GUEST_WINDOW_POSTMESSAGE', function (event, sourceId, m
// Forward history operations to browser.
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) {
@ -215,15 +215,15 @@ var getHistoryOperation = function (...args) {
}
window.history.back = function () {
return sendHistoryOperation('goBack')
sendHistoryOperation('goBack')
}
window.history.forward = function () {
return sendHistoryOperation('goForward')
sendHistoryOperation('goForward')
}
window.history.go = function (offset) {
return sendHistoryOperation('goToOffset', offset)
sendHistoryOperation('goToOffset', offset)
}
Object.defineProperty(window.history, 'length', {