diff options
author | metamuffin <metamuffin@disroot.org> | 2024-03-17 16:44:15 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-03-17 16:44:15 +0100 |
commit | f11b04cd0b093fc11b156105b6aff470e70c54a3 (patch) | |
tree | bf4e68b42c0d5e50095361a2af39c1ccc349a921 /client-web/source/keybinds.ts | |
parent | c8063785853e516280cd68e9d8e9ae79b2081989 (diff) | |
download | keks-meet-f11b04cd0b093fc11b156105b6aff470e70c54a3.tar keks-meet-f11b04cd0b093fc11b156105b6aff470e70c54a3.tar.bz2 keks-meet-f11b04cd0b093fc11b156105b6aff470e70c54a3.tar.zst |
replace window with globalThis
Diffstat (limited to 'client-web/source/keybinds.ts')
-rw-r--r-- | client-web/source/keybinds.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client-web/source/keybinds.ts b/client-web/source/keybinds.ts index 09fbb34..047fe97 100644 --- a/client-web/source/keybinds.ts +++ b/client-web/source/keybinds.ts @@ -24,7 +24,7 @@ export function setup_keybinds(state: AppState) { if (ev.code == "KeyS") state.room?.local_user.await_add_resource(create_screencast_res()) if (ev.code == "KeyC" && !ev.ctrlKey) state.room?.local_user.await_add_resource(create_camera_res()) if (ev.code == "KeyC" && ev.ctrlKey) state.room?.local_user.resources.forEach(t => t.destroy()) - if (ev.code == "KeyU") if (window.confirm("really update?")) update_serviceworker() + if (ev.code == "KeyU") if (globalThis.confirm("really update?")) update_serviceworker() if (ev.code == "KeyV") state.chat?.remove_oldest_message() } }) |