diff --git a/scripts/background/shopAI.js b/scripts/background/shopAI.js index 6f2da7c..1ef500b 100644 --- a/scripts/background/shopAI.js +++ b/scripts/background/shopAI.js @@ -2,10 +2,12 @@ Shop wisely with AI! */ -import fc from './fc.js'; -import BackgroundCheck from "./background.check.js"; -import BackgroundMessaging from "./background.messaging.js"; - -fc.run(); -BackgroundCheck.init(); -new BackgroundMessaging(); \ No newline at end of file +(async () => { + const fc = (await import(browser.runtime.getURL("scripts/external/watch.js"))).default; + 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(); + BackgroundCheck.init(); + new BackgroundMessaging(); +}) \ No newline at end of file