Align CDN health badge checking icon with torrent badge

This commit is contained in:
thePR0M3TH3AN committed 2025-10-17 10:05:18 -04:00
1 parent 609d5e725c
commit c40187f09f
4 files changed
+20 -13

No files matched your search

+8 -1
View File
@@ -989,10 +989,17 @@ export class VideoCard {
typeof entry?.status === "string" && entry.status
? entry.status
: "checking";
const fallbackMessages = {
healthy: "✅ CDN",
offline: "❌ CDN",
unknown: "⚠️ CDN",
timeout: "⚠️ CDN timed out",
checking: "⏳ CDN"
};
const message =
typeof entry?.message === "string" && entry.message
? entry.message
: "Checking hosted URL…";
: fallbackMessages[status] || fallbackMessages.checking;
badge.className = ["badge", "url-health-badge"].join(" ");