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 55fed34 commit 93dc899Copy full SHA for 93dc899
packages/utils/src/supports.ts
@@ -106,7 +106,8 @@ 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 && typeof (doc as object).createElement === 'function') {
+ // tslint:disable-next-line:no-unbound-method deprecation
110
+ if (doc && typeof (doc.createElement as unknown) === `function`) {
111
try {
112
const sandbox = doc.createElement('iframe');
113
sandbox.hidden = true;
0 commit comments