Skip to content

Commit

Permalink
[hypothesis#6474] [DOCS-388] Assume top window as Host
Browse files Browse the repository at this point in the history
  • Loading branch information
jwgmeligmeyling committed Jul 27, 2024
1 parent f4e5e98 commit 7573fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/annotator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function init() {
});
sidebarLinkElement.addEventListener('destroy', resolveUnloadRequested);

const hostFrame = annotatorConfig.subFrameIdentifier ? window.parent : window;
const hostFrame = annotatorConfig.subFrameIdentifier ? window.top! : window;

const destroyables = [] as Destroyable[];

Expand Down

0 comments on commit 7573fe0

Please sign in to comment.