Add javascript code to prevent new window iOS homescreen. Issue #66
This commit is contained in:
parent
3cfaa2e036
commit
979499fdfc
|
|
@ -46,5 +46,16 @@ $(document).ready(function() {
|
||||||
setInterval(checkVersion, 43200000);
|
setInterval(checkVersion, 43200000);
|
||||||
});
|
});
|
||||||
</script>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue