From 8aaf7e201e58ec9ecb431a6ac05e07d0078b12b0 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 9 Sep 2022 15:35:48 +0200 Subject: pref format changed --- client-web/source/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client-web/source/index.ts') 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'") -- cgit v1.2.3-70-g09d2