We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7742c2 commit 124e71eCopy full SHA for 124e71e
packages/utils/src/supports.ts
@@ -106,7 +106,7 @@ export function supportsNativeFetch(): boolean {
106
// so create a "pure" iframe to see if that has native fetch
107
let result = false;
108
const doc = global.document;
109
- if (doc) {
+ if (doc && typeof doc.createElement === 'function') {
110
try {
111
const sandbox = doc.createElement('iframe');
112
sandbox.hidden = true;
0 commit comments