fix(core): update

This commit is contained in:
Philipp Kunz 2023-07-09 17:20:12 +02:00
parent d3c90b0e7e
commit f36bdcb181
2 changed files with 1 additions and 3 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/webrequest',
version: '3.0.26',
version: '3.0.27',
description: 'securely request from browsers'
}

View File

@ -27,7 +27,6 @@ export class WebRequest {
this.polyfillStatusEvaluated = true;
const smartenv = new plugins.smartenv.Smartenv();
if (!smartenv.isBrowser) {
console.log('webrequest using node context.');
this.polyfillStatusEvaluated = true;
const fetchMod = await smartenv.getSafeNodeModule('@adobe/fetch');
this.neededPolyfillsLoadedDeferred.resolve({
@ -36,7 +35,6 @@ export class WebRequest {
helixTimeout: fetchMod.timeoutSignal,
});
} else {
console.log('webrequest using browser context.');
this.neededPolyfillsLoadedDeferred.resolve({
fetch: (...args) => {
return fetch(...args);