Add redirect for GameView

This commit is contained in:
He4eT 2021-03-04 03:17:37 +05:00
commit 2a909c1f19
3 changed files with 7 additions and 2 deletions

View file

@ -12,6 +12,7 @@ export const useHashLocation = () => {
const handler = () => setLoc(currentLoc())
window.addEventListener('hashchange', handler)
handler()
return () => window.removeEventListener('hashchange', handler)
}, [])