Show spinner while recent videos load

This commit is contained in:
thePR0M3TH3AN committed 2025-10-01 13:49:43 -04:00
1 parent 284bab6cff
commit fa583f0685
1 file changed
+9 -6
+9 -6
View File
@@ -7531,14 +7531,17 @@ class bitvidApp {
this.videoSubscription = null;
}
if (this.videoList) {
if (this._lastRenderedVideoListElement !== this.videoList) {
this.lastRenderedVideoSignature = null;
}
this.videoList.innerHTML = getSidebarLoadingMarkup(
"Fetching recent videos…"
);
}
// The rest of your existing logic:
if (!this.videoSubscription) {
if (this.videoList) {
this.lastRenderedVideoSignature = null;
this.videoList.innerHTML = getSidebarLoadingMarkup(
"Fetching recent videos…"
);
}
// Create a new subscription
this.videoSubscription = nostrClient.subscribeVideos(() => {