Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2023-11-27 13:47:26 +01:00
parent 8992a85619
commit 619d0e1c34
1 changed files with 1 additions and 0 deletions

View File

@ -195,6 +195,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 => {
BDFDB.TimeUtils.clear(timeoutObj);
if (!config.bdVersion) return requestFunction(url, Object.assign({}, config, {bdVersion: true}), callback);
else callback(new Error(error), {
aborted: false,