summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authors1nical <[email protected]>2019-08-26 04:45:40 -0700
committers1nical <[email protected]>2019-08-26 04:45:40 -0700
commit87273ed64d4a83db0387180153d5ab845d2e0485 (patch)
treee173bc80ee7bdac326c3ac4d7fee35e6e854a9c5 /js
parentformatting fix (diff)
downloads1n.pw-admin-87273ed64d4a83db0387180153d5ab845d2e0485.tar.xz
s1n.pw-admin-87273ed64d4a83db0387180153d5ab845d2e0485.zip
disable context menu on right click on home
Diffstat (limited to 'js')
-rw-r--r--js/hide-context-menu.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/hide-context-menu.js b/js/hide-context-menu.js
new file mode 100644
index 0000000..af01311
--- /dev/null
+++ b/js/hide-context-menu.js
@@ -0,0 +1,3 @@
+document.addEventListener("contextmenu", function (e) {
+ e.preventDefault();
+}, false) \ No newline at end of file