use async imports since ES6 imports not available without service workers
This commit is contained in:
parent
a013bb1ccf
commit
e7677284bf
1 changed files with 9 additions and 7 deletions
|
@ -2,10 +2,12 @@
|
||||||
Shop wisely with AI!
|
Shop wisely with AI!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import fc from './fc.js';
|
(async () => {
|
||||||
import BackgroundCheck from "./background.check.js";
|
const fc = (await import(browser.runtime.getURL("scripts/external/watch.js"))).default;
|
||||||
import BackgroundMessaging from "./background.messaging.js";
|
const BackgroundCheck = (await import(browser.runtime.getURL("/scripts/background/background.check.js"))).default;
|
||||||
|
const BackgroundMessaging = (await import(browser.runtime.getURL("/scripts/background/background.messaging.js"))).default;
|
||||||
|
|
||||||
fc.run();
|
fc.run();
|
||||||
BackgroundCheck.init();
|
BackgroundCheck.init();
|
||||||
new BackgroundMessaging();
|
new BackgroundMessaging();
|
||||||
|
})
|
Loading…
Add table
Add a link
Reference in a new issue