mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 21:02:28 +00:00
Remove WebTorrent peer count badges
This commit is contained in:
1 parent
d704266549
commit
7ae501c010
2 files changed
+2
-7
No files matched your search
+1
-4
@@ -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
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in new issue
Block a user