From eb989bee89d3e96436a10ab57867b855df7a89b4 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Thu, 25 Sep 2025 18:03:48 -0400 Subject: [PATCH] Ensure url health badges update once cards mount --- js/app.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 3060a9f4..f9da5c58 100644 --- a/js/app.js +++ b/js/app.js @@ -2153,7 +2153,7 @@ class bitvidApp { } updateUrlHealthBadge(badgeEl, state, videoId) { - if (!badgeEl || !badgeEl.isConnected) { + if (!badgeEl) { return; } @@ -2161,6 +2161,17 @@ class bitvidApp { return; } + if (!badgeEl.isConnected) { + if (typeof requestAnimationFrame === "function") { + requestAnimationFrame(() => { + if (badgeEl.isConnected) { + this.updateUrlHealthBadge(badgeEl, state, videoId); + } + }); + } + return; + } + const status = state?.status || "checking"; const message = state?.message ||