aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-21 13:27:32 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-12-21 13:27:32 -0500
commita2175f2c293ef2de41a58acdd9adc202b0302d67 (patch)
treef3bf7d760a80402b00dd4debdf2af7ac9ece8254 /ext/bg/js
parent7ae05840772c04f1263f851432e21bd5a313b320 (diff)
Move PopupProxyHost initialization
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/settings/popup-preview-frame.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/bg/js/settings/popup-preview-frame.js b/ext/bg/js/settings/popup-preview-frame.js
index 53077a83..6d017275 100644
--- a/ext/bg/js/settings/popup-preview-frame.js
+++ b/ext/bg/js/settings/popup-preview-frame.js
@@ -47,7 +47,10 @@ class SettingsPopupPreview {
window.apiOptionsGet = (...args) => this.apiOptionsGet(...args);
// Overwrite frontend
- const popup = PopupProxyHost.instance.createPopup(null, 0);
+ const popupHost = new PopupProxyHost();
+ await popupHost.prepare();
+
+ const popup = popupHost.createPopup(null, 0);
popup.setChildrenSupported(false);
this.frontend = new Frontend(popup);