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 d10df2a commit 1bafff3Copy full SHA for 1bafff3
web/packages/core/src/js-polyfills.ts
@@ -138,12 +138,10 @@ export function resetCustomMap(): typeof Map | undefined {
138
const iframe = document.createElement("iframe");
139
iframe.style.display = "none";
140
document.documentElement.append(iframe);
141
- if (iframe.contentWindow) {
142
- // eslint-disable-next-line no-global-assign
143
- Map = iframe.contentWindow.Map;
144
- iframe.remove();
145
- return currentMap;
146
- }
+ // eslint-disable-next-line no-global-assign
+ Map = iframe.contentWindow!.Map;
+ iframe.remove();
+ return currentMap;
147
}
148
return undefined;
149
0 commit comments