innerLoaded command alias as wrapperInnerLoaded
This commit is contained in:
parent
23dc8e063c
commit
39734dfadb
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue