diff --git a/js/app.js b/js/app.js index 2c6d2b16..7a05fc74 100644 --- a/js/app.js +++ b/js/app.js @@ -4373,6 +4373,11 @@ class Application { return this._feed.registerTrendingFeed(...args); } + registerMostZappedFeed(...args) { + this._initCoordinators(); + return this._feed.registerMostZappedFeed(...args); + } + registerSubscriptionsFeed(...args) { this._initCoordinators(); return this._feed.registerSubscriptionsFeed(...args); @@ -4476,6 +4481,11 @@ class Application { return this._feed.loadTrendingVideos(...args); } + async loadMostZappedVideos(...args) { + this._initCoordinators(); + return this._feed.loadMostZappedVideos(...args); + } + async loadOlderVideos(...args) { this._initCoordinators(); return this._feed.loadOlderVideos(...args); diff --git a/js/zapTotals.js b/js/zapTotals.js index b7b1f4fd..910b4697 100644 --- a/js/zapTotals.js +++ b/js/zapTotals.js @@ -279,3 +279,9 @@ export function onZapTotalsChanged(listener) { // The singleton store itself — exposes flush() for tests. export default store; + +// Console debug handle: window.__bitvidZapTotals.getSnapshot(["a","30078:…"]), +// .request(pointer), .flush() — for diagnosing why a badge is (not) showing. +if (typeof window !== "undefined") { + window.__bitvidZapTotals = store; +}