From 7573fe0fa5427896d6dd4d1d58a7a86e011b371f Mon Sep 17 00:00:00 2001 From: Jan-Willem Gmelig Meyling Date: Sat, 27 Jul 2024 21:20:22 +0200 Subject: [PATCH] [#6474] [DOCS-388] Assume top window as Host --- src/annotator/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[];