Disable flags like reloading

This commit is contained in:
2026-02-14 23:31:58 -07:00
parent 16ce04ba7a
commit c461a0a459
3 changed files with 20 additions and 13 deletions

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