summaryrefslogtreecommitdiff
path: root/ext/bg/js/context-main.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-22 21:42:20 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-22 21:42:20 -0400
commitd8276a9d5d119edf1747593608d3e135947019f0 (patch)
tree455373d756a1759582bbdd9b9d69d7eb7d8e220c /ext/bg/js/context-main.js
parentd106c638ed69b2c72895c1040b0e7bea2e31cdb7 (diff)
Use IIFE for entry points
Diffstat (limited to 'ext/bg/js/context-main.js')
-rw-r--r--ext/bg/js/context-main.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/bg/js/context-main.js b/ext/bg/js/context-main.js
index 67bb4e18..e2086a96 100644
--- a/ext/bg/js/context-main.js
+++ b/ext/bg/js/context-main.js
@@ -88,8 +88,6 @@ async function mainInner() {
});
}
-async function main() {
+(async () => {
window.addEventListener('DOMContentLoaded', mainInner, false);
-}
-
-main();
+})();