diff --git a/lib/getFetch.cjs b/lib/getFetch.cjs index 2cb1855..de5a5aa 100644 --- a/lib/getFetch.cjs +++ b/lib/getFetch.cjs @@ -10,7 +10,7 @@ if (typeof fetch === 'function') { } } -if (typeof require !== 'undefined' && (typeof window === 'undefined' || typeof window.document === 'undefined')) { +if (typeof require !== 'undefined' && typeof window === 'undefined') { var f = fetchApi || require('cross-fetch') if (f.default) f = f.default exports.default = f