From 93e016fbffb7cf5f7c9e9d76028d45da7c5d436b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Baz=20Castillo?= Date: Wed, 22 Jan 2025 11:36:50 +0100 Subject: [PATCH] foo --- app/src/index.jsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/src/index.jsx b/app/src/index.jsx index b8baa850e..5ce9cf8bc 100644 --- a/app/src/index.jsx +++ b/app/src/index.jsx @@ -58,9 +58,20 @@ domready(async () => { run(); }); +window.RUN = run; + async function run() { logger.debug('run() [environment:%s]', process.env.NODE_ENV); + if (window.CLIENT) { + window.CLIENT.close(); + + // eslint-disable-next-line require-atomic-updates + window.CLIENT = undefined; + // eslint-disable-next-line require-atomic-updates + window.CC = undefined; + } + const urlParser = new UrlParse(window.location.href, true); const peerId = randomString({ length: 8 }).toLowerCase(); let roomId = urlParser.query.roomId;