diff --git a/web/app.js b/web/app.js index a0cc5419af3694..f91835cc1728c7 100644 --- a/web/app.js +++ b/web/app.js @@ -2009,6 +2009,9 @@ const PDFViewerApplication = { window.addEventListener("keydown", webViewerKeyDown); window.addEventListener("keyup", webViewerKeyUp); window.addEventListener("message", webViewerPostMessage); + if (window.parent) { + window.parent.postMessage("ready", "*"); + } window.addEventListener("resize", _boundEvents.windowResize); window.addEventListener("hashchange", _boundEvents.windowHashChange); window.addEventListener("beforeprint", _boundEvents.windowBeforePrint);