Skip to content

Commit a4f1289

Browse files
authored
Merge pull request #347 from ulixee/iframe-cw
fix: Iframe ContentWindow not resolving
2 parents 424c445 + 7381189 commit a4f1289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/default-browser-emulator/injected-scripts/HTMLIFrameElement.prototype.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ proxySetter(HTMLIFrameElement.prototype, 'srcdoc', function (_, iframe) {
1313
if (!frameWindowProxies.has(iframe)) {
1414
const proxy = new Proxy(self, {
1515
get(target, key) {
16-
if (key === 'self') {
16+
if (key === 'self' || key === 'contentWindow') {
1717
return iframe.contentWindow;
1818
}
1919
if (key === 'document') {

0 commit comments

Comments
 (0)