Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

Commit

Permalink
Make add-on a bit less noisy and nosey
Browse files Browse the repository at this point in the history
  • Loading branch information
ntninja committed Apr 2, 2017
1 parent 26dbded commit 7ebfb2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion webextension/icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
browser.storage.onChanged.addListener((changes, areaName) => {
for(let name of Object.keys(changes)) {
if(areaName === "local" && name === "enable") {
console.log(name, changes[name]);
if(changes[name].newValue === true) {
browser.browserAction.setIcon({ path: { 256: "icon.svg" } });
browser.browserAction.setTitle({ title: "Smart Referer – Enabled" });
Expand Down
7 changes: 3 additions & 4 deletions webextension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@

"storage",
"webRequest",
"webRequestBlocking",
"http://*/*",
"https://*/*"
"webRequestBlocking"
],

"options_ui": {
Expand All @@ -33,7 +31,8 @@

"browser_action": {
"default_icon": "icon.svg",
"default_title": "Smart Referer"
"default_title": "Smart Referer",
"browser_style": true
},

"background": {
Expand Down

0 comments on commit 7ebfb2a

Please sign in to comment.