From 603dbd4eaeb835ef29ce1f09fd36ac0a96fde84d Mon Sep 17 00:00:00 2001 From: nutty Date: Sun, 9 Aug 2026 23:11:09 +1000 Subject: [PATCH] =?UTF-8?q?=E2=80=A2=20Updated=20version=20number=20?= =?UTF-8?q?=E2=80=A2=20Sanitized=20text=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- now-playing/script.js | 5 +++-- now-playing/themes/standard/script.js | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/now-playing/script.js b/now-playing/script.js index 7b69ee7..bd1a5bf 100644 --- a/now-playing/script.js +++ b/now-playing/script.js @@ -9,7 +9,7 @@ const urlParams = new URLSearchParams(queryString); // CONSTANTS // //////////////// -const REQUIRED_VERSION = '0.0.2'; +const REQUIRED_VERSION = '0.0.3'; const SMTC_BRIDGE_DOWNLOAD_URL = 'https://github.com/nuttylmao/smtc-bridge/releases'; let VersionChecked = false; @@ -492,7 +492,8 @@ function SetLabelText(elementId, text) { function ApplyMarquee(label, text) { // 1. Render single span to measure dimensions label.classList.remove('is-overflowing'); - label.innerHTML = `${text}`; + label.innerHTML = ``; + label.querySelector('.scroll-content').textContent = text; const scrollContent = label.querySelector('.scroll-content'); diff --git a/now-playing/themes/standard/script.js b/now-playing/themes/standard/script.js index 7af8949..0ca049a 100644 --- a/now-playing/themes/standard/script.js +++ b/now-playing/themes/standard/script.js @@ -134,8 +134,6 @@ async function ChangeTrack(mediaProps, accentColorPalette) { backgroundLayer.style.opacity = ""; albumArtLayer.style.opacity = ""; - console.log(songInfoWrapper.clientWidth); - setTimeout(() => { // Set the image backgroundTransitionLayer.style.backgroundImage = `url('${newArtUrl}')`;