summaryrefslogtreecommitdiff
path: root/ext/fg/js/frontend-initialize.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-03-19 15:55:12 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-04-05 19:57:37 +0300
commit09151a1a860f35b8dcbdbe9a25c09be5abeb4e37 (patch)
tree943a06c4c13c09a89a040f20ac083779d4b0252f /ext/fg/js/frontend-initialize.js
parentb996d0b1e0838673001db0580430ed4ad6d102f2 (diff)
simplify popup proxy prepare
Diffstat (limited to 'ext/fg/js/frontend-initialize.js')
-rw-r--r--ext/fg/js/frontend-initialize.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/fg/js/frontend-initialize.js b/ext/fg/js/frontend-initialize.js
index 7f70d9c4..352c6bd9 100644
--- a/ext/fg/js/frontend-initialize.js
+++ b/ext/fg/js/frontend-initialize.js
@@ -48,8 +48,10 @@ async function main() {
const {popupId, frameId} = await rootPopupInformationPromise;
popup = new PopupProxy(popupId, 0, null, frameId, url);
+ await popup.prepare();
} else if (proxy) {
popup = new PopupProxy(null, depth + 1, id, parentFrameId, url);
+ await popup.prepare();
} else {
const popupHost = new PopupProxyHost();
await popupHost.prepare();