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! | ||||
| */ | ||||
| 
 | ||||
| import fc from './fc.js'; | ||||
| import BackgroundCheck from "./background.check.js"; | ||||
| import BackgroundMessaging from "./background.messaging.js"; | ||||
| (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(); | ||||
| }) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue