mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-21 00:32:48 +02:00
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:
+3
-5
@@ -410,13 +410,11 @@
|
||||
"name": "private-browsing-theme"
|
||||
},
|
||||
{
|
||||
"description": "Uses the proxy API to block requests to specific hosts.",
|
||||
"description": "Uses the proxy API to block requests to hosts specified on a list.",
|
||||
"javascript_apis": [
|
||||
"extension.getURL",
|
||||
"proxy.onProxyError",
|
||||
"proxy.register",
|
||||
"runtime.onMessage",
|
||||
"runtime.sendMessage",
|
||||
"proxy.onRequest",
|
||||
"proxy.onError",
|
||||
"storage.local",
|
||||
"storage.onChanged"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user