diff options
Diffstat (limited to 'ext/js/background/background-main.js')
-rw-r--r-- | ext/js/background/background-main.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/js/background/background-main.js b/ext/js/background/background-main.js index 8e32a53f..29c256d3 100644 --- a/ext/js/background/background-main.js +++ b/ext/js/background/background-main.js @@ -19,9 +19,12 @@ import {yomitan} from '../yomitan.js'; import {Backend} from './backend.js'; -(() => { +/** Entry point. */ +async function main() { yomitan.prepare(true); const backend = new Backend(); - backend.prepare(); -})(); + await backend.prepare(); +} + +main(); |