mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-23 05:53:36 +00:00
Merge pull request #2689 from Bnyro/master
fix: crash when DeArrow is disabled
This commit is contained in:
commit
9a2fe4064b
@ -543,7 +543,7 @@ const mixin = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
fetchDeArrowContent(videoIds) {
|
fetchDeArrowContent(videoIds) {
|
||||||
if (!this.getPreferenceBoolean("dearrow", false)) return {};
|
if (!this.getPreferenceBoolean("dearrow", false)) return new Promise(resolve => resolve({}));
|
||||||
return this.fetchJson(this.apiUrl() + "/dearrow", {
|
return this.fetchJson(this.apiUrl() + "/dearrow", {
|
||||||
videoIds: videoIds.join(","),
|
videoIds: videoIds.join(","),
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user