diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-12-18 23:41:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 04:41:23 +0000 |
commit | 6b07b1e6e158f718fd30c44878a72c3b6ad83fa0 (patch) | |
tree | 0b95307e82416ff154c412b42c8eeaa033dac24f /ext/js/pages/action-popup-main.js | |
parent | 1d268edcc3efce723954bcaa7dd376f0352c1a32 (diff) |
IIFE updates (#384)
* Remove most IIFEs
* Move IIFEs into functions
* Don't await background-main
Diffstat (limited to 'ext/js/pages/action-popup-main.js')
-rw-r--r-- | ext/js/pages/action-popup-main.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/js/pages/action-popup-main.js b/ext/js/pages/action-popup-main.js index f8dd865f..9f72cc82 100644 --- a/ext/js/pages/action-popup-main.js +++ b/ext/js/pages/action-popup-main.js @@ -21,7 +21,7 @@ import {querySelectorNotNull} from '../dom/query-selector.js'; import {HotkeyHelpController} from '../input/hotkey-help-controller.js'; import {yomitan} from '../yomitan.js'; -export class DisplayController { +class DisplayController { constructor() { /** @type {?import('settings').Options} */ this._optionsFull = null; @@ -302,7 +302,8 @@ export class DisplayController { } } -(async () => { +/** Entry point. */ +async function main() { await yomitan.prepare(); yomitan.api.logIndicatorClear(); @@ -311,4 +312,6 @@ export class DisplayController { displayController.prepare(); yomitan.ready(); -})(); +} + +await main(); |