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