diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-05-29 20:29:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-29 20:29:19 -0400 |
commit | df040b104aa4a1d0ec15daf39fac4f237d598c2e (patch) | |
tree | d49c594d7f9d3c5cefaf23f76042de29ec173312 /ext/bg/js/settings/popup-preview-frame-main.js | |
parent | 9624566d2af853141ea5c6c781a019eeea212066 (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.js | 7 |
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(); })(); |