Skip to content

Commit

Permalink
Add javascript code to prevent new window iOS homescreen. Issue #66
Browse files Browse the repository at this point in the history
  • Loading branch information
wez3 committed Jan 14, 2017
1 parent 3cfaa2e commit 979499f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,16 @@
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>

0 comments on commit 979499f

Please sign in to comment.