From 2b73b2209c5036ebace3cc396a3ac4f1f38d7eeb Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Thu, 17 Jul 2025 19:06:37 -0700 Subject: [PATCH] Disable rightclick menu --- src/App.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index baa07cb..4113e3e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -13,6 +13,12 @@ export default function App () { return () => window.removeEventListener('hashchange', onHashChange) }, []) + useEffect(() => { + const handler = (e: MouseEvent) => e.preventDefault() + document.addEventListener('contextmenu', handler) + return () => document.removeEventListener('contextmenu', handler) + }, []) + function renderContent() { if (hash === "#installs") { return