summaryrefslogtreecommitdiff
path: root/client-web/source/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client-web/source/index.ts')
-rw-r--r--client-web/source/index.ts2
1 files changed, 1 insertions, 1 deletions
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.")