1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-13 22:00:28 +05:30

fix: crash when DeArrow is disabled

This commit is contained in:
Bnyro 2023-07-20 12:39:06 +02:00
parent f47d6140ce
commit 84f38da40c

View File

@ -543,7 +543,7 @@ const mixin = {
}
},
fetchDeArrowContent(videoIds) {
if (!this.getPreferenceBoolean("dearrow", false)) return {};
if (!this.getPreferenceBoolean("dearrow", false)) return new Promise(resolve => resolve({}));
return this.fetchJson(this.apiUrl() + "/dearrow", {
videoIds: videoIds.join(","),
});