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"],
|
||||
|
||||
"background": {
|
||||
"service_worker": "scripts/background/shopAI.js", "type": "module"
|
||||
"scripts": ["scripts/background/shopAI.js"]
|
||||
},
|
||||
"action": {},
|
||||
"content_scripts": [
|
||||
|
@ -28,7 +28,15 @@
|
|||
"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"
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
fc.run();
|
||||
BackgroundCheck.init();
|
||||
new BackgroundMessaging();
|
||||
})
|
|
@ -78,8 +78,8 @@ class global {
|
|||
|
||||
// Override the data with managed data if available.
|
||||
if ((NAME != null) ? NAME.length : false) {
|
||||
DATA[`managed`] = await managed.read((NAME) ? [...NAME] : null);
|
||||
DATA_RETURNED[`value`] = (DATA[`managed`] != null) ? DATA[`managed`] : DATA_RETURNED[`value`];
|
||||
// DATA[`managed`] = await managed.read((NAME) ? [...NAME] : null);
|
||||
// DATA_RETURNED[`value`] = (DATA[`managed`] != null) ? DATA[`managed`] : DATA_RETURNED[`value`];
|
||||
};
|
||||
|
||||
return DATA_RETURNED[`value`];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue