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}')`;