innerLoaded command alias as wrapperInnerLoaded

This commit is contained in:
shortcutme 2017-02-16 19:04:00 +01:00
parent 23dc8e063c
commit 39734dfadb
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ class Wrapper
if @ws.ws.readyState == 1 and not @wrapperWsInited # If ws already opened if @ws.ws.readyState == 1 and not @wrapperWsInited # If ws already opened
@sendInner {"cmd": "wrapperOpenedWebsocket"} @sendInner {"cmd": "wrapperOpenedWebsocket"}
@wrapperWsInited = true @wrapperWsInited = true
else if cmd == "innerLoaded" else if cmd == "innerLoaded" or cmd == "wrapperInnerLoaded"
if window.location.hash if window.location.hash
$("#inner-iframe")[0].src += window.location.hash # Hash tag $("#inner-iframe")[0].src += window.location.hash # Hash tag
@log "Added hash to location", $("#inner-iframe")[0].src @log "Added hash to location", $("#inner-iframe")[0].src

View file

@ -912,7 +912,7 @@ jQuery.extend( jQuery.easing,
}); });
return this.wrapperWsInited = true; return this.wrapperWsInited = true;
} }
} else if (cmd === "innerLoaded") { } else if (cmd === "innerLoaded" || cmd === "wrapperInnerLoaded") {
if (window.location.hash) { if (window.location.hash) {
$("#inner-iframe")[0].src += window.location.hash; $("#inner-iframe")[0].src += window.location.hash;
return this.log("Added hash to location", $("#inner-iframe")[0].src); return this.log("Added hash to location", $("#inner-iframe")[0].src);