Compare commits
	
		
			4 commits
		
	
	
		
			developmen
			...
			developmen
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | d185b20a14 | ||
|  | 1e318787da | ||
|  | e7677284bf | ||
|  | a013bb1ccf | 
					 3 changed files with 22 additions and 12 deletions
				
			
		|  | @ -7,7 +7,7 @@ | ||||||
| 	"permissions": ["tabs", "storage", "unlimitedStorage", "contextMenus"], | 	"permissions": ["tabs", "storage", "unlimitedStorage", "contextMenus"], | ||||||
| 
 | 
 | ||||||
| 	"background": { | 	"background": { | ||||||
| 		"service_worker": "scripts/background/shopAI.js", "type": "module" | 		"scripts": ["scripts/background/shopAI.js"] | ||||||
| 	}, | 	}, | ||||||
| 	"action": {}, | 	"action": {}, | ||||||
| 	"content_scripts": [ | 	"content_scripts": [ | ||||||
|  | @ -28,7 +28,15 @@ | ||||||
| 		"512": "media/icons/logo_tiny.png" | 		"512": "media/icons/logo_tiny.png" | ||||||
| 	}, | 	}, | ||||||
| 	 | 	 | ||||||
| 	"options_page": "pages/settings.htm", | 	"options_ui": { | ||||||
|  | 	    "page": "pages/settings.htm" | ||||||
|  | 	}, | ||||||
|  | 	 | ||||||
|  | 	"browser_specific_settings": { | ||||||
|  | 		"gecko": { | ||||||
|  | 			"id": "{db2d6746-5711-4c83-90c7-107057f37732}" | ||||||
|  | 		} | ||||||
|  | 	}, | ||||||
| 
 | 
 | ||||||
| 	"default_locale": "en" | 	"default_locale": "en" | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -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(); | ||||||
|  | }) | ||||||
|  | @ -78,8 +78,8 @@ class global { | ||||||
| 	 | 	 | ||||||
| 				// Override the data with managed data if available. 
 | 				// Override the data with managed data if available. 
 | ||||||
| 				if ((NAME != null) ? NAME.length : false) { | 				if ((NAME != null) ? NAME.length : false) { | ||||||
| 					DATA[`managed`] = await managed.read((NAME) ? [...NAME] : null); | 					// DATA[`managed`] = await managed.read((NAME) ? [...NAME] : null);
 | ||||||
| 					DATA_RETURNED[`value`] = (DATA[`managed`] != null) ? DATA[`managed`] : DATA_RETURNED[`value`]; | 					// DATA_RETURNED[`value`] = (DATA[`managed`] != null) ? DATA[`managed`] : DATA_RETURNED[`value`];
 | ||||||
| 				}; | 				}; | ||||||
| 
 | 
 | ||||||
| 				return DATA_RETURNED[`value`]; | 				return DATA_RETURNED[`value`]; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue