Skip to content

Commit 7573fe0

Browse files
[hypothesis#6474] [DOCS-388] Assume top window as Host
1 parent f4e5e98 commit 7573fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/annotator/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function init() {
8080
});
8181
sidebarLinkElement.addEventListener('destroy', resolveUnloadRequested);
8282

83-
const hostFrame = annotatorConfig.subFrameIdentifier ? window.parent : window;
83+
const hostFrame = annotatorConfig.subFrameIdentifier ? window.top! : window;
8484

8585
const destroyables = [] as Destroyable[];
8686

0 commit comments

Comments
 (0)