Coerce offset to number in renderer process
This commit is contained in:
parent
775753c3d7
commit
95ef422ab4
1 changed files with 1 additions and 1 deletions
|
@ -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', {
|
||||||
|
|
Loading…
Reference in a new issue