diff --git a/src/annotator/index.ts b/src/annotator/index.ts index e6ed85b0cab..116384924e3 100644 --- a/src/annotator/index.ts +++ b/src/annotator/index.ts @@ -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[];