fix: Use toLocal for number
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user