From 5cd88136c70dc3aae12778180b7f1c2c568a00fc Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 1 Apr 2024 15:03:08 +0200 Subject: more live regions and mute indicator --- client-web/source/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'client-web/source/index.ts') diff --git a/client-web/source/index.ts b/client-web/source/index.ts index 029ffc4..237db60 100644 --- a/client-web/source/index.ts +++ b/client-web/source/index.ts @@ -78,7 +78,6 @@ export async function main() { if (!globalThis.navigator.serviceWorker) log({ scope: "*", warn: true }, "Your browser does not support the Service Worker API, forced automatic updates are unavoidable.") if (PREFS.warn_redirect) log({ scope: "crypto", warn: true }, "You were redirected from the old URL format. The server knows the room secret now - E2EE is insecure!") - const sud = e("div", { class: "side-ui" }) const state: AppState = { chat: new Chat(), @@ -109,7 +108,7 @@ export async function main() { globalThis.onbeforeunload = ev => { if (state.room && state.room.local_user.resources.size != 0 && PREFS.enable_onbeforeunload) { ev.preventDefault() - return ev.returnValue = "You have local resources shared. Really quit?" + return "You have local resources shared. Really quit?" } } -- cgit v1.2.3-70-g09d2