We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c46e900 commit 975c455Copy full SHA for 975c455
packages/core/src/tools/utils/urlPolyfill.ts
@@ -42,7 +42,7 @@ export function getPristineWindow() {
42
iframe = document.createElement('iframe')
43
iframe.style.display = 'none'
44
document.body.appendChild(iframe)
45
- pristineWindow = iframe.contentWindow as Window & typeof globalThis
+ pristineWindow = (iframe.contentWindow ?? globalObject) as Window & typeof globalThis
46
} catch {
47
pristineWindow = globalObject as unknown as Window & typeof globalThis
48
}
0 commit comments