diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-04-22 21:42:20 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-04-22 21:42:20 -0400 |
commit | d8276a9d5d119edf1747593608d3e135947019f0 (patch) | |
tree | 455373d756a1759582bbdd9b9d69d7eb7d8e220c /ext/bg/js/background-main.js | |
parent | d106c638ed69b2c72895c1040b0e7bea2e31cdb7 (diff) |
Use IIFE for entry points
Diffstat (limited to 'ext/bg/js/background-main.js')
-rw-r--r-- | ext/bg/js/background-main.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/bg/js/background-main.js b/ext/bg/js/background-main.js index c000c38d..24117f4e 100644 --- a/ext/bg/js/background-main.js +++ b/ext/bg/js/background-main.js @@ -19,9 +19,7 @@ * Backend */ -async function main() { +(async () => { window.yomichanBackend = new Backend(); await window.yomichanBackend.prepare(); -} - -main(); +})(); |