Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Jan 22, 2025
1 parent bd02f80 commit 93e016f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 93e016f

Please sign in to comment.