From 6653391c3dd4347457ad46833fa9a1241f60133b Mon Sep 17 00:00:00 2001 From: Cashew Date: Wed, 27 Dec 2023 17:36:15 +0700 Subject: [PATCH] revert content-script-wrapper --- ext/js/app/content-script-wrapper.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ext/js/app/content-script-wrapper.js b/ext/js/app/content-script-wrapper.js index 48e6956079..795d3d8b9b 100644 --- a/ext/js/app/content-script-wrapper.js +++ b/ext/js/app/content-script-wrapper.js @@ -16,14 +16,8 @@ * along with this program. If not, see . */ -/** Entry point. */ -async function main() { +(async () => { const src = chrome.runtime.getURL('js/app/content-script-main.js'); // eslint-disable-next-line no-unsanitized/method await import(src); -} - -await main(); - -// Empty export to enable top-level await -export {}; +})();