Merge pull request #614 from PR0M3TH3AN/codex/change-cdn-health-check-display

Align CDN health badge with torrent badge icon
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2025-10-17 10:06:04 -04:00
commit d0bca0a4bc
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(" ");