Remove WebTorrent peer count badges

This commit is contained in:
thePR0M3TH3AN committed 2025-10-18 14:58:46 -04:00
1 parent d704266549
commit 7ae501c010
2 files changed
+2 -7

No files matched your search

+1 -4
View File
@@ -480,11 +480,8 @@ function setBadge(card, state, details) {
delete badge.dataset.variant;
}
const peersText =
normalizedState === "healthy" && peersValue > 0 ? ` (${peersValue})` : "";
const iconPrefix = entry.icon ? `${entry.icon} ` : "";
badge.textContent = `${iconPrefix}WebTorrent${peersText}`;
badge.textContent = `${iconPrefix}WebTorrent`;
const tooltip =
normalizedState === "checking" || normalizedState === "unknown"
? entry.aria
+1 -3
View File
@@ -1601,10 +1601,8 @@ export class VideoCard {
} else if (badge.dataset.variant) {
delete badge.dataset.variant;
}
const peersText =
state === "healthy" && peersValue > 0 ? ` (${peersValue})` : "";
const iconPrefix = descriptor.icon ? `${descriptor.icon} ` : "";
const computedText = `${iconPrefix}WebTorrent${peersText}`;
const computedText = `${iconPrefix}WebTorrent`;
badge.textContent = text || computedText;
const tooltipValue =