Fix theme variable handling with invalid values

pull/15577/head
Michael Telatynski 2 years ago
parent 6cef14e6cc
commit d297ee5c7e
  1. 2
      src/vector/jitsi/index.ts

@ -70,7 +70,7 @@ let meetApi: any; // JitsiMeetExternalAPI
const theme = qsParam('theme', true);
if (theme) {
document.body.classList.add(`theme-${theme}`);
document.body.classList.add(`theme-${theme.replace(" ", "_")}`);
}
// Set this up as early as possible because Element will be hitting it almost immediately.

Loading…
Cancel
Save