proxy-blocker updates (#422)

* proxy-blocker updates

These changes replace the use of the deprecated `proxy.register` (PAC file) with `proxy.onRequest` to handle the proxying of requests.

* Changes as per feedback

* Fixed typo

* Addressed feedback relating to issue with variable initialization after enable/disable

* Typo fix

* The changes as suggested by @wbamberg
This commit is contained in:
rebloor
2019-09-05 06:28:46 +12:00
committed by wbamberg
parent 12f59209c9
commit 72dfcf1bad
6 changed files with 78 additions and 88 deletions

View File

@@ -3,7 +3,7 @@
"manifest_version": 2,
"name": "Proxy-blocker",
"description": "Uses the proxy API to block requests to specific hosts.",
"version": "1.0",
"version": "2.0",
"icons": {
"48": "icons/block.svg",
@@ -27,6 +27,6 @@
"browser_style": true
},
"permissions": ["proxy", "storage"]
"permissions": ["proxy", "storage", "<all_urls>"]
}