aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/context-main.js
diff options
context:
space:
mode:
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();
+})();