Disable flags like reloading

This commit is contained in:
Lncvrt committed 2026-02-14 23:31:58 -07:00
1 parent 16ce04ba7a
commit c461a0a459
3 files changed
+20 -13

No files matched your search

-7
View File
@@ -270,13 +270,6 @@ export default function RootLayout ({
})()
}, [])
useEffect(() => {
if (process.env.NODE_ENV !== 'production') return
const handler = (e: MouseEvent) => e.preventDefault()
document.addEventListener('contextmenu', handler)
return () => document.removeEventListener('contextmenu', handler)
}, [])
const downloadVersions = useCallback(
async (list: string[]): Promise<void> => {
if (list.length === 0) return