From 7c895bd8c0f1c25859c7d2e4274bfa00ef6385a0 Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Tue, 27 Oct 2020 11:13:55 +0000
Subject: [PATCH] Fix theme variable handling with invalid values

---
 src/vector/jitsi/index.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vector/jitsi/index.ts b/src/vector/jitsi/index.ts
index 6aeba8f7aa..a5a8be36e2 100644
--- a/src/vector/jitsi/index.ts
+++ b/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.