diff options
author | metamuffin <metamuffin@disroot.org> | 2023-04-10 14:15:33 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-04-10 14:15:33 +0200 |
commit | 4b026c618ed6b40a22c0bf601b45e1da96d5bc5e (patch) | |
tree | 34ea874d40407f8f318d66d8935cbdbbf3fbb42d /client-web/source/index.ts | |
parent | fe36a0640f2e36baad1f08033f09b49bdd0f1062 (diff) | |
download | keks-meet-4b026c618ed6b40a22c0bf601b45e1da96d5bc5e.tar keks-meet-4b026c618ed6b40a22c0bf601b45e1da96d5bc5e.tar.bz2 keks-meet-4b026c618ed6b40a22c0bf601b45e1da96d5bc5e.tar.zst |
new (useless) sw
Diffstat (limited to 'client-web/source/index.ts')
-rw-r--r-- | client-web/source/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client-web/source/index.ts b/client-web/source/index.ts index c92ca2b..8da99ea 100644 --- a/client-web/source/index.ts +++ b/client-web/source/index.ts @@ -5,7 +5,7 @@ */ /// <reference lib="dom" /> -import { init_serviceworker } from "./sw/init.ts"; +import { init_serviceworker } from "./sw/client.ts"; import { esection, OVERLAYS } from "./helper.ts"; import { setup_keybinds } from "./keybinds.ts"; import { log, LOGGER_CONTAINER } from "./logger.ts" @@ -65,7 +65,7 @@ export async function main() { if (!globalThis.RTCPeerConnection) return log({ scope: "webrtc", error: true }, "WebRTC not supported.") if (!globalThis.isSecureContext) log({ scope: "*", warn: true }, "This page is not in a 'Secure Context'") if (!globalThis.crypto.subtle) return log({ scope: "crypto", error: true }, "SubtleCrypto not availible") - if (!globalThis.navigator.serviceWorker) log({ scope: "*", warn: true }, "Your browser does not support the Service Worker API, some features dont work without it.") + if (!globalThis.navigator.serviceWorker) log({ scope: "*", warn: true }, "Your browser does not support the Service Worker API, forced automatic updates are unavoidable.") if (room_secret.length < 8) log({ scope: "crypto", warn: true }, "Room name is very short. e2ee is insecure!") if (room_secret.length == 0) return window.location.href = "/" // send them back to the start page 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!") |