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/public/app.html | 15 +++++++++------ client-web/source/index.ts | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) (limited to 'client-web') diff --git a/client-web/public/app.html b/client-web/public/app.html index 665a7d2..8479a22 100644 --- a/client-web/public/app.html +++ b/client-web/public/app.html @@ -8,13 +8,16 @@ keks-meet + +

keks-meet is loading, please wait…

- keks-meet needs evil javascript to be enabled. Don't be afraid - though, all the code is free (AGPL-3.0-only)! Look at it on - codeberg -

-

- If you have JS enabled, check the browser console to see if + If this takes too long check the browser console to see if something else failed

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