From f20f1f2940adfb2c7568b5be60428fb1ec4151f8 Mon Sep 17 00:00:00 2001 From: nutty Date: Mon, 10 Aug 2026 20:07:34 +1000 Subject: [PATCH] Sanitized fonts so they actually work as intended --- horizontal-chat/script.js | 2 +- multichat-overlay/script.js | 2 +- multistream-alerts/script.js | 2 +- now-playing/script.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/horizontal-chat/script.js b/horizontal-chat/script.js index f5fc40f..51ad172 100644 --- a/horizontal-chat/script.js +++ b/horizontal-chat/script.js @@ -97,7 +97,7 @@ let youtubeUsername = urlParams.get("youtubeUsername") || ""; //////////////// // Set fonts for the widget -document.body.style.fontFamily = font; +document.body.style.fontFamily = `'${font}'`; document.body.style.fontSize = `${fontSize}px`; // Set the background color diff --git a/multichat-overlay/script.js b/multichat-overlay/script.js index 49afc56..7809d23 100644 --- a/multichat-overlay/script.js +++ b/multichat-overlay/script.js @@ -104,7 +104,7 @@ let youtubeUsername = urlParams.get("youtubeUsername") || ""; //////////////// // Set fonts for the widget -document.body.style.fontFamily = font; +document.body.style.fontFamily = `'${font}'`; document.body.style.fontSize = `${fontSize}px`; // Set line spacing diff --git a/multistream-alerts/script.js b/multistream-alerts/script.js index 165181b..d997e95 100644 --- a/multistream-alerts/script.js +++ b/multistream-alerts/script.js @@ -129,7 +129,7 @@ if (!showAvatar) { } // Set fonts for the widget -document.body.style.fontFamily = font; +document.body.style.fontFamily = `'${font}'`; document.body.style.fontSize = `${fontSize}px`; document.body.style.color = fontColor; diff --git a/now-playing/script.js b/now-playing/script.js index 9cc93ed..b694884 100644 --- a/now-playing/script.js +++ b/now-playing/script.js @@ -67,7 +67,7 @@ let hideTimeout = null; //////////////// // Set fonts for the widget -document.body.style.fontFamily = font; +document.body.style.fontFamily = `'${font}'`; document.body.style.fontSize = `${fontSize}px`; // Set album art visibility