Skip to content

Commit 6ba9a24

Browse files
prevent context menu on body
1 parent f3b7c3e commit 6ba9a24

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

static/index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@
6060
run();
6161
startReloadInterval();
6262
</script>
63+
64+
<script>
65+
document.body.addEventListener("contextmenu", (e) => {
66+
e.preventDefault();
67+
e.stopPropagation();
68+
});
69+
</script>
6370
</body>
6471

65-
</html>
72+
</html>

0 commit comments

Comments
 (0)