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 2087eff commit daf7a6dCopy full SHA for daf7a6d
CHANGELOG.md
@@ -2,7 +2,7 @@
2
3
## Unreleased
4
5
-- tbd
+- [utils] ref: Move creation of iframe in try/catch
6
7
## 5.12.4
8
packages/utils/src/supports.ts
@@ -107,9 +107,9 @@ export function supportsNativeFetch(): boolean {
107
let result = false;
108
const doc = global.document;
109
if (doc) {
110
- const sandbox = doc.createElement('iframe');
111
- sandbox.hidden = true;
112
try {
+ const sandbox = doc.createElement('iframe');
+ sandbox.hidden = true;
113
doc.head.appendChild(sandbox);
114
if (sandbox.contentWindow && sandbox.contentWindow.fetch) {
115
// tslint:disable-next-line:no-unbound-method
0 commit comments