Workaround for stuck iframe url in Firefox when using back button

This commit is contained in:
Tamas Kocsis 2020-09-18 18:43:25 +02:00
parent 0309b81695
commit bf092b83ab

View file

@ -76,7 +76,10 @@ else if (window.opener && window.opener.location.toString()) {
<!-- Site info -->
<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}"
wrapper_nonce = "{wrapper_nonce}"
wrapper_key = "{wrapper_key}"