From 84f38da40c9645207ca6c4ca788819b99eaa3fb2 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 20 Jul 2023 12:39:06 +0200 Subject: [PATCH] fix: crash when DeArrow is disabled --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 7830f7b3..601a3d50 100644 --- a/src/main.js +++ b/src/main.js @@ -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(","), });