mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-08 22:11:32 +02:00
Fix theme variable handling with invalid values
This commit is contained in:
parent
6cef14e6cc
commit
d297ee5c7e
@ -70,7 +70,7 @@ let meetApi: any; // JitsiMeetExternalAPI
|
|||||||
const theme = qsParam('theme', true);
|
const theme = qsParam('theme', true);
|
||||||
|
|
||||||
if (theme) {
|
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.
|
// Set this up as early as possible because Element will be hitting it almost immediately.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user