Skip to content

Commit

Permalink
try blocking arduboy from opening in new url on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
joyrider3774 committed Jul 1, 2024
1 parent 4569137 commit d48384c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion waternet_arduboy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<script>
function setIframeSrc()
{
window.open = function(url, name, specs, replace) { // Do nothing, or do something smart... }
const iframe = document.querySelector('#iframe');
urlnotouch = "https://felipemanga.github.io/ProjectABE/?url=https://github.com/joyrider3774/waternet_arduboy/raw/main/distribution/waternet.hex&skin=BareFit&Color=FFFFFF";
urltouch = "https://felipemanga.github.io/ProjectABE/?url=https://github.com/joyrider3774/waternet_arduboy/raw/main/distribution/waternet.hex&skin=Arduboy&Color=FFFFFFF";
Expand All @@ -47,6 +48,6 @@
}
</script>
<body onload="setIframeSrc();">
<iframe id="iframe" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;" src="" />
<iframe allowfullscreen="0" id="iframe" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;" src="" />
</body>
</html>

0 comments on commit d48384c

Please sign in to comment.