summaryrefslogtreecommitdiff
path: root/ext/bg/js/settings/popup-preview-frame-main.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-05-29 20:29:19 -0400
committerGitHub <noreply@github.com>2020-05-29 20:29:19 -0400
commitdf040b104aa4a1d0ec15daf39fac4f237d598c2e (patch)
treed49c594d7f9d3c5cefaf23f76042de29ec173312 /ext/bg/js/settings/popup-preview-frame-main.js
parent9624566d2af853141ea5c6c781a019eeea212066 (diff)
Popup preview frame refactor (#572)
* Use private variables * Use private methods * Update overrides * Make prepare called in the entry point function * Change format of handlers * Change where _apiOptionsGetOld is assigned * Rename class
Diffstat (limited to 'ext/bg/js/settings/popup-preview-frame-main.js')
-rw-r--r--ext/bg/js/settings/popup-preview-frame-main.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/bg/js/settings/popup-preview-frame-main.js b/ext/bg/js/settings/popup-preview-frame-main.js
index a362efa5..7c4e2eb9 100644
--- a/ext/bg/js/settings/popup-preview-frame-main.js
+++ b/ext/bg/js/settings/popup-preview-frame-main.js
@@ -16,11 +16,12 @@
*/
/* global
- * SettingsPopupPreview
+ * PopupPreviewFrame
* api
*/
-(() => {
+(async () => {
api.forwardLogsToBackend();
- new SettingsPopupPreview();
+ const preview = new PopupPreviewFrame();
+ await preview.prepare();
})();