diff options
author | metamuffin <metamuffin@disroot.org> | 2022-10-26 23:54:33 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-10-26 23:54:33 +0200 |
commit | 2a83c8bdbdd5a67b6068420520e83524f4a6f6bd (patch) | |
tree | 8638903b93eb929ca74e5027a1816820ff0bc346 /client-web/source/keybinds.ts | |
parent | d0162d41438c7ee3d9bc5321f73ed33defc443a3 (diff) | |
download | keks-meet-2a83c8bdbdd5a67b6068420520e83524f4a6f6bd.tar keks-meet-2a83c8bdbdd5a67b6068420520e83524f4a6f6bd.tar.bz2 keks-meet-2a83c8bdbdd5a67b6068420520e83524f4a6f6bd.tar.zst |
some code for streamed downloads
Diffstat (limited to 'client-web/source/keybinds.ts')
-rw-r--r-- | client-web/source/keybinds.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client-web/source/keybinds.ts b/client-web/source/keybinds.ts index ddd1c82..5463e47 100644 --- a/client-web/source/keybinds.ts +++ b/client-web/source/keybinds.ts @@ -7,6 +7,7 @@ import { create_camera_res, create_mic_res, create_screencast_res } from "./resource/track.ts"; import { Room } from "./room.ts" +import { update_serviceworker } from "./sw/init.ts"; export function setup_keybinds(room: Room) { let command_mode = false @@ -29,6 +30,7 @@ export function setup_keybinds(room: Room) { if (ev.code == "KeyS") room.local_user.await_add_resource(create_screencast_res()) if (ev.code == "KeyC" && !ev.ctrlKey) room.local_user.await_add_resource(create_camera_res()) if (ev.code == "KeyC" && ev.ctrlKey) room.local_user.resources.forEach(t => t.destroy()) + if (ev.code == "KeyU") if (window.confirm("really update?")) update_serviceworker() } command_mode = false }) |