summaryrefslogtreecommitdiff
path: root/client-web/source
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-10-09 18:48:32 +0200
committermetamuffin <metamuffin@disroot.org>2022-10-09 18:48:32 +0200
commite4c38443b9adf57a874b427550ade5f8680ea8ed (patch)
treee997fd0727476737fcdce7ff00c3ee3329c2a35d /client-web/source
parent1d23f7b835ec6714cda248981e642c48fc551dce (diff)
downloadkeks-meet-e4c38443b9adf57a874b427550ade5f8680ea8ed.tar
keks-meet-e4c38443b9adf57a874b427550ade5f8680ea8ed.tar.bz2
keks-meet-e4c38443b9adf57a874b427550ade5f8680ea8ed.tar.zst
reload on hash change
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")