summaryrefslogtreecommitdiff
path: root/client-web/source
diff options
context:
space:
mode:
Diffstat (limited to 'client-web/source')
-rw-r--r--client-web/source/index.ts4
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")