Add javascript code to prevent new window iOS homescreen. Issue #66

This commit is contained in:
wez3 2017-01-14 18:27:33 +01:00
parent 3cfaa2e036
commit 979499fdfc
1 changed files with 11 additions and 0 deletions

View File

@ -46,5 +46,16 @@ $(document).ready(function() {
setInterval(checkVersion, 43200000);
});
</script>
<script>
var a=document.querySelectorAll("a[href^='/']");
for(var i=0;i<a.length;i++)
{
a[i].onclick=function()
{
window.location=this.getAttribute("href");
return false
}
}
</script>
</body>
</html>