From d997c3941feebe8688bb60159f53b7feb24c85ae Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 29 Dec 2022 15:55:57 +0100 Subject: display loading --- client-web/source/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client-web/source/index.ts') diff --git a/client-web/source/index.ts b/client-web/source/index.ts index a853c58..e42cb74 100644 --- a/client-web/source/index.ts +++ b/client-web/source/index.ts @@ -51,7 +51,7 @@ window.onbeforeunload = ev => { let r: Room; export async function main() { log("*", "starting up") - document.body.querySelectorAll("p").forEach(e => e.remove()) + document.body.innerHTML = "" // remove existing elements const room_name = load_params().rname if (!globalThis.RTCPeerConnection) return log({ scope: "webrtc", error: true }, "WebRTC not supported.") -- cgit v1.2.3-70-g09d2