Disable rightclick menu

This commit is contained in:
2025-07-17 19:06:37 -07:00
parent 3f67a1a04d
commit 2b73b2209c

View File

@@ -13,6 +13,12 @@ export default function App () {
return () => window.removeEventListener('hashchange', onHashChange) return () => window.removeEventListener('hashchange', onHashChange)
}, []) }, [])
useEffect(() => {
const handler = (e: MouseEvent) => e.preventDefault()
document.addEventListener('contextmenu', handler)
return () => document.removeEventListener('contextmenu', handler)
}, [])
function renderContent() { function renderContent() {
if (hash === "#installs") { if (hash === "#installs") {
return <Installs /> return <Installs />