fix: Use toLocal for number
All checks were successful
Check Code Quality / RuffCheck (push) Successful in 2m23s
Build Docker / BuildImage (push) Successful in 2m24s

This commit is contained in:
2026-03-30 09:34:25 +11:00
parent d39fc7a4b6
commit 565beefac1

View File

@@ -31,7 +31,7 @@ document.addEventListener("DOMContentLoaded", () => {
// Create a new span element to display the stats // Create a new span element to display the stats
const statsLabel = document.createElement("p"); const statsLabel = document.createElement("p");
statsLabel.classList.add("service-note"); statsLabel.classList.add("service-note");
statsLabel.textContent = `Images: ${data.images}, Videos: ${data.videos}`; statsLabel.textContent = `Images: ${data.images.toLocaleString()}, Videos: ${data.videos}`;
// Append the stats span to the Immich link // Append the stats span to the Immich link
immichLink.appendChild(statsLabel); immichLink.appendChild(statsLabel);
} else { } else {
@@ -91,4 +91,4 @@ document.addEventListener("DOMContentLoaded", () => {
console.error("Error fetching VPN status:", error); console.error("Error fetching VPN status:", error);
}); });
} }
}); });