diff options
author | metamuffin <metamuffin@disroot.org> | 2022-10-09 18:48:32 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-10-09 18:48:32 +0200 |
commit | e4c38443b9adf57a874b427550ade5f8680ea8ed (patch) | |
tree | e997fd0727476737fcdce7ff00c3ee3329c2a35d /client-web/source/index.ts | |
parent | 1d23f7b835ec6714cda248981e642c48fc551dce (diff) | |
download | keks-meet-e4c38443b9adf57a874b427550ade5f8680ea8ed.tar keks-meet-e4c38443b9adf57a874b427550ade5f8680ea8ed.tar.bz2 keks-meet-e4c38443b9adf57a874b427550ade5f8680ea8ed.tar.zst |
reload on hash change
Diffstat (limited to 'client-web/source/index.ts')
-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") |