diff options
Diffstat (limited to 'client-web')
-rw-r--r-- | client-web/source/index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client-web/source/index.ts b/client-web/source/index.ts index c36ea1f..be44c57 100644 --- a/client-web/source/index.ts +++ b/client-web/source/index.ts @@ -36,6 +36,10 @@ export interface User { } window.onload = () => main() +window.onhashchange = () => { + // TODO might just destroy room object and create a new one, but cleanup probably wont work. lets reload instead + window.location.reload() +} export async function main() { log("*", "starting up") |