Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2023-11-06 16:39:24 +01:00
parent 37ed3f2e3f
commit ea1f38f7e8
1 changed files with 1 additions and 1 deletions

View File

@ -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,