• Updated version number

• Sanitized text content
This commit is contained in:
nutty
2026-08-09 23:11:09 +10:00
parent e4820dc1ca
commit 603dbd4eae
2 changed files with 3 additions and 4 deletions
+3 -2
View File
@@ -9,7 +9,7 @@ const urlParams = new URLSearchParams(queryString);
// CONSTANTS // // 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'; const SMTC_BRIDGE_DOWNLOAD_URL = 'https://github.com/nuttylmao/smtc-bridge/releases';
let VersionChecked = false; let VersionChecked = false;
@@ -492,7 +492,8 @@ function SetLabelText(elementId, text) {
function ApplyMarquee(label, text) { function ApplyMarquee(label, text) {
// 1. Render single span to measure dimensions // 1. Render single span to measure dimensions
label.classList.remove('is-overflowing'); label.classList.remove('is-overflowing');
label.innerHTML = `<span class="scroll-content">${text}</span>`; label.innerHTML = `<span class="scroll-content"></span>`;
label.querySelector('.scroll-content').textContent = text;
const scrollContent = label.querySelector('.scroll-content'); const scrollContent = label.querySelector('.scroll-content');
-2
View File
@@ -134,8 +134,6 @@ async function ChangeTrack(mediaProps, accentColorPalette) {
backgroundLayer.style.opacity = ""; backgroundLayer.style.opacity = "";
albumArtLayer.style.opacity = ""; albumArtLayer.style.opacity = "";
console.log(songInfoWrapper.clientWidth);
setTimeout(() => { setTimeout(() => {
// Set the image // Set the image
backgroundTransitionLayer.style.backgroundImage = `url('${newArtUrl}')`; backgroundTransitionLayer.style.backgroundImage = `url('${newArtUrl}')`;