Merge pull request #2689 from Bnyro/master

fix: crash when DeArrow is disabled
This commit is contained in:
Bnyro 2023-07-20 12:40:40 +02:00 committed by GitHub
commit 9a2fe4064b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(","),
});