From ea1f38f7e8bc1c213c3446402eb3678b2704223a Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 6 Nov 2023 16:39:24 +0100 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 85a68828e2..6119fa62a4 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -197,7 +197,7 @@ module.exports = (_ => { }, timeout); let response = null, isFallback = false; return (config.bdVersion && BdApi && BdApi.Net && BdApi.Net.fetch ? BdApi.Net.fetch : fetch)(url, config).catch(error => { - if (!config.bdVersion) requestFunction(url, Object.assign({}, config, {bdVersion: true}), callback); + if (!config.bdVersion) return requestFunction(url, Object.assign({}, config, {bdVersion: true}), callback); else callback(new Error(error), { aborted: false, complete: true,