|
@@ -9,7 +9,7 @@
|
|
|
<script src="../script/jquery.min.js"></script>
|
|
|
<script src="../script/ao_module.js"></script>
|
|
|
<script src="../script/semantic/semantic.min.js"></script>
|
|
|
-
|
|
|
+ <link rel="icon" type="image/png" href="img/module_icon.png">
|
|
|
<link rel="manifest" crossorigin="use-credentials" href="manifest.json">
|
|
|
<title>Browser</title>
|
|
|
<style>
|
|
@@ -201,6 +201,14 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ //Remove the tailing / if exists
|
|
|
+ if (targetURL.substr(targetURL.length - 1, targetURL.length) == "/"){
|
|
|
+ targetURL = targetURL.substr(0, targetURL.length - 1);
|
|
|
+ }
|
|
|
+
|
|
|
+ $("#xframe").removeAttr("srcdoc");
|
|
|
+ $("#xframe").attr("src", "loading.html");
|
|
|
+
|
|
|
//Filter the URL if required
|
|
|
if (targetURL.substr(0,4) != "http"){
|
|
|
if (location.protocol !== "https:"){
|
|
@@ -265,8 +273,7 @@
|
|
|
callback(null);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- if (xFrameOptions.header == "sameorigin" || xFrameOptions.header == "deny"){
|
|
|
+ if (header == "sameorigin" || header == "deny"){
|
|
|
//This webpage do not allow iframeing
|
|
|
callback(false, location);
|
|
|
}else{
|