Coerce offset to number in renderer process

This commit is contained in:
Kevin Sawicki 2017-04-25 14:49:14 -07:00
parent 775753c3d7
commit 95ef422ab4

View file

@ -164,7 +164,7 @@ module.exports = (ipcRenderer, guestInstanceId, openerId, hiddenPage) => {
} }
window.history.go = function (offset) { window.history.go = function (offset) {
sendHistoryOperation(ipcRenderer, 'goToOffset', offset) sendHistoryOperation(ipcRenderer, 'goToOffset', +offset)
} }
defineProperty(window.history, 'length', { defineProperty(window.history, 'length', {