mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
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:
1 parent
a345a1ca57
commit
b1e93046fd
1 file changed
+5
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user