Fix: Add missing refreshFeed method to Application class to prevent TypeError

The `feedCoordinator` logic assumes `this.refreshFeed` exists on the Application instance (because methods are bound via `bindCoordinator`). However, `Application` previously only implemented `refreshRecentFeed`, `refreshForYouFeed`, etc., but not the generic `refreshFeed`.

This caused a `TypeError: this.refreshFeed is not a function` when `loadFeedVideos` (which calls `refreshFeed`) was invoked.

This commit adds `async refreshFeed(...args)` to `Application` in `js/app.js`, delegating to `this._feed.refreshFeed(...args)`.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-08 01:34:41 +00:00
1 parent a345a1ca57
commit b1e93046fd
1 file changed
+5
+5
View File
@@ -3988,6 +3988,11 @@ class Application {
return this._feed.refreshFeed("recent", ...args);
}
async refreshFeed(...args) {
this._initCoordinators();
return this._feed.refreshFeed(...args);
}
checkRelayHealthWarning(...args) {
this._initCoordinators();
return this._feed.checkRelayHealthWarning(...args);