Workaround for stuck iframe url in Firefox when using back button
This commit is contained in:
parent
0309b81695
commit
bf092b83ab
1 changed files with 4 additions and 1 deletions
|
@ -76,7 +76,10 @@ else if (window.opener && window.opener.location.toString()) {
|
||||||
|
|
||||||
<!-- Site info -->
|
<!-- Site info -->
|
||||||
<script id="script_init" nonce="{script_nonce}">
|
<script id="script_init" nonce="{script_nonce}">
|
||||||
document.getElementById("inner-iframe").src = "{file_url}{query_string}"
|
iframe_src = "{file_url}{query_string}"
|
||||||
|
console.log("Changing url from " + document.getElementById("inner-iframe").src + " to " + iframe_src)
|
||||||
|
document.getElementById("inner-iframe").src = document.getElementById("inner-iframe").src // Workaround for Firefox back button bug
|
||||||
|
document.getElementById("inner-iframe").src = iframe_src
|
||||||
address = "{address}"
|
address = "{address}"
|
||||||
wrapper_nonce = "{wrapper_nonce}"
|
wrapper_nonce = "{wrapper_nonce}"
|
||||||
wrapper_key = "{wrapper_key}"
|
wrapper_key = "{wrapper_key}"
|
||||||
|
|
Loading…
Reference in a new issue