diff options
Diffstat (limited to 'ext/fg/js/frontend.js')
-rw-r--r-- | ext/fg/js/frontend.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index 61789473..44690028 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -357,7 +357,12 @@ class Frontend { async _getIframeProxyPopup() { const targetFrameId = 0; // Root frameId - await this._waitForFrontendReady(targetFrameId); + try { + await this._waitForFrontendReady(targetFrameId); + } catch (e) { + // Root frame not available + return await this._getDefaultPopup(); + } const {popupId} = await api.crossFrame.invoke(targetFrameId, 'getPopupInfo'); if (popupId === null) { |