diff --git a/horizontal-chat/script.js b/horizontal-chat/script.js index 51ad172..e7446eb 100644 --- a/horizontal-chat/script.js +++ b/horizontal-chat/script.js @@ -97,7 +97,8 @@ let youtubeUsername = urlParams.get("youtubeUsername") || ""; //////////////// // Set fonts for the widget -document.body.style.fontFamily = `'${font}'`; +if (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 7809d23..41776d2 100644 --- a/multichat-overlay/script.js +++ b/multichat-overlay/script.js @@ -104,7 +104,8 @@ let youtubeUsername = urlParams.get("youtubeUsername") || ""; //////////////// // Set fonts for the widget -document.body.style.fontFamily = `'${font}'`; +if (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 d997e95..412dcef 100644 --- a/multistream-alerts/script.js +++ b/multistream-alerts/script.js @@ -129,7 +129,8 @@ if (!showAvatar) { } // Set fonts for the widget -document.body.style.fontFamily = `'${font}'`; +if (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 b694884..64aed80 100644 --- a/now-playing/script.js +++ b/now-playing/script.js @@ -67,7 +67,8 @@ let hideTimeout = null; //////////////// // Set fonts for the widget -document.body.style.fontFamily = `'${font}'`; +if (font) + document.body.style.fontFamily = `'${font}'`; document.body.style.fontSize = `${fontSize}px`; // Set album art visibility