Skip to content

Commit

Permalink
feat: adding extension id
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Apr 1, 2023
1 parent 0168922 commit c4062d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dev": "vite",
"serve:firefox": "web-ext run -s .dist",
"serve:chrome": "web-ext run -t chromium -s .dist",
"bundle": "nr build && web-ext build -s .dist -a .out"
"bundle": "nr build && web-ext build -s .dist -a .out --overwrite-dest"
},
"devDependencies": {
"@antfu/ni": "^0.21.2",
Expand Down
6 changes: 6 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
"48": "icons/48.png",
"96": "icons/96.png"
},
"browser_specific_settings": {
"gecko": {
"id": "replace-maps@nobkd.github.io",
"strict_min_version": "89.0"
}
},
"permissions": [
"storage",
"webRequest",
Expand Down
8 changes: 2 additions & 6 deletions src/bg/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@ browser.browserAction.onClicked.addListener(async (tab: browser.Tabs.Tab) => {
let disabled: any = await browser.storage.managed.get('disabled');
disabled = !(typeof disabled === 'boolean' ? disabled : false);
if (disabled) {
browser.action.enable(tab.id);
} else {
browser.action.disable(tab.id);
}
console.log(disabled);
browser.storage.managed.set({ disabled: disabled });
*/

browser.tabs.reload(tab.id);
});

0 comments on commit c4062d7

Please sign in to comment.