diff options
| author | s1nical <[email protected]> | 2019-08-26 04:45:40 -0700 |
|---|---|---|
| committer | s1nical <[email protected]> | 2019-08-26 04:45:40 -0700 |
| commit | 87273ed64d4a83db0387180153d5ab845d2e0485 (patch) | |
| tree | e173bc80ee7bdac326c3ac4d7fee35e6e854a9c5 /js/hide-context-menu.js | |
| parent | formatting fix (diff) | |
| download | s1n.pw-admin-87273ed64d4a83db0387180153d5ab845d2e0485.tar.xz s1n.pw-admin-87273ed64d4a83db0387180153d5ab845d2e0485.zip | |
disable context menu on right click on home
Diffstat (limited to 'js/hide-context-menu.js')
| -rw-r--r-- | js/hide-context-menu.js | 3 |
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 |