Sanitized fonts so they actually work as intended

This commit is contained in:
nutty
2026-08-10 20:07:34 +10:00
parent b13b10a682
commit f20f1f2940
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ let youtubeUsername = urlParams.get("youtubeUsername") || "";
//////////////// ////////////////
// Set fonts for the widget // Set fonts for the widget
document.body.style.fontFamily = font; document.body.style.fontFamily = `'${font}'`;
document.body.style.fontSize = `${fontSize}px`; document.body.style.fontSize = `${fontSize}px`;
// Set the background color // Set the background color
+1 -1
View File
@@ -104,7 +104,7 @@ let youtubeUsername = urlParams.get("youtubeUsername") || "";
//////////////// ////////////////
// Set fonts for the widget // Set fonts for the widget
document.body.style.fontFamily = font; document.body.style.fontFamily = `'${font}'`;
document.body.style.fontSize = `${fontSize}px`; document.body.style.fontSize = `${fontSize}px`;
// Set line spacing // Set line spacing
+1 -1
View File
@@ -129,7 +129,7 @@ if (!showAvatar) {
} }
// Set fonts for the widget // Set fonts for the widget
document.body.style.fontFamily = font; document.body.style.fontFamily = `'${font}'`;
document.body.style.fontSize = `${fontSize}px`; document.body.style.fontSize = `${fontSize}px`;
document.body.style.color = fontColor; document.body.style.color = fontColor;
+1 -1
View File
@@ -67,7 +67,7 @@ let hideTimeout = null;
//////////////// ////////////////
// Set fonts for the widget // Set fonts for the widget
document.body.style.fontFamily = font; document.body.style.fontFamily = `'${font}'`;
document.body.style.fontSize = `${fontSize}px`; document.body.style.fontSize = `${fontSize}px`;
// Set album art visibility // Set album art visibility