diff options
author | metamuffin <metamuffin@disroot.org> | 2022-09-09 15:35:48 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-09-09 15:35:48 +0200 |
commit | 8aaf7e201e58ec9ecb431a6ac05e07d0078b12b0 (patch) | |
tree | 190a24165b6d15d750ca8f9d998f8bfd74b65f05 /client-web/source/index.ts | |
parent | 8e4242a02e2558d5a33b570d573774a4fb2c8278 (diff) | |
download | keks-meet-8aaf7e201e58ec9ecb431a6ac05e07d0078b12b0.tar keks-meet-8aaf7e201e58ec9ecb431a6ac05e07d0078b12b0.tar.bz2 keks-meet-8aaf7e201e58ec9ecb431a6ac05e07d0078b12b0.tar.zst |
pref format changed
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 0249d4d..c15ec38 100644 --- a/client-web/source/index.ts +++ b/client-web/source/index.ts @@ -3,7 +3,7 @@ import { ediv } from "./helper.ts"; import { log } from "./logger.ts" import { create_menu } from "./menu.ts"; -import { PREFS } from "./preferences.ts"; +import { get_param, load_params, PREFS } from "./preferences.ts"; import { SignalingConnection } from "./protocol/mod.ts"; import { Room } from "./room.ts" @@ -27,7 +27,7 @@ window.onload = () => main() export async function main() { log("*", "starting up") document.body.querySelectorAll("p").forEach(e => e.remove()) - const room_name = window.location.hash.substring(1) + const room_name = load_params().rname 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'") |