From 565beefac10e1a7b6ccc07ace37dea622fe90f57 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 30 Mar 2026 09:34:25 +1100 Subject: [PATCH] fix: Use toLocal for number --- templates/assets/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/assets/js/index.js b/templates/assets/js/index.js index ecf0ce9..a64c03b 100644 --- a/templates/assets/js/index.js +++ b/templates/assets/js/index.js @@ -31,7 +31,7 @@ document.addEventListener("DOMContentLoaded", () => { // Create a new span element to display the stats const statsLabel = document.createElement("p"); 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 immichLink.appendChild(statsLabel); } else { @@ -91,4 +91,4 @@ document.addEventListener("DOMContentLoaded", () => { console.error("Error fetching VPN status:", error); }); } -}); \ No newline at end of file +});