rename wrapperPopstate to wrapperPopState

This commit is contained in:
HelloZeroNet 2016-05-16 22:27:17 +02:00
parent fc9c604b66
commit 3b8dc59ac5
2 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ class Wrapper
$("#inner-iframe").attr("src", src) $("#inner-iframe").attr("src", src)
window.onpopstate = (e) => window.onpopstate = (e) =>
@sendInner {"cmd": "wrapperPopstate", "result": {"href": document.location.href, "state": e.state}} @sendInner {"cmd": "wrapperPopState", "params": {"href": document.location.href, "state": e.state}}
$("#inner-iframe").focus() $("#inner-iframe").focus()

View file

@ -796,8 +796,8 @@ jQuery.extend( jQuery.easing,
window.onpopstate = (function(_this) { window.onpopstate = (function(_this) {
return function(e) { return function(e) {
return _this.sendInner({ return _this.sendInner({
"cmd": "wrapperPopstate", "cmd": "wrapperPopState",
"result": { "params": {
"href": document.location.href, "href": document.location.href,
"state": e.state "state": e.state
} }