diff --git a/lib/build/utils.js b/lib/build/utils.js index a39a8c09c..c619fa977 100644 --- a/lib/build/utils.js +++ b/lib/build/utils.js @@ -49,9 +49,9 @@ const logger_1 = require("./logger"); const constants_1 = require("./constants"); const cross_fetch_1 = __importDefault(require("cross-fetch")); const doFetch = (...args) => { - if (typeof fetch !== "undefined") { - return fetch(...args); - } + // if (typeof fetch !== "undefined") { + // return fetch(...args); + // } return cross_fetch_1.default(...args); }; exports.doFetch = doFetch; diff --git a/lib/ts/utils.ts b/lib/ts/utils.ts index 294ec88e0..51d228689 100644 --- a/lib/ts/utils.ts +++ b/lib/ts/utils.ts @@ -11,9 +11,9 @@ import { User } from "./user"; import { SessionContainer } from "./recipe/session"; export const doFetch: typeof fetch = (...args) => { - if (typeof fetch !== "undefined") { - return fetch(...args); - } + // if (typeof fetch !== "undefined") { + // return fetch(...args); + // } return crossFetch(...args); };