mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-18 15:28:37 +02:00
more .eslintrc.json and fixes
This commit is contained in:
@@ -15,7 +15,7 @@ browser.proxy.onProxyError.addListener(error => {
|
||||
});
|
||||
|
||||
// Initialize the proxy
|
||||
function handleInit(message) {
|
||||
function handleInit() {
|
||||
// update the proxy whenever stored settings change
|
||||
browser.storage.onChanged.addListener((newSettings) => {
|
||||
browser.runtime.sendMessage(newSettings.blockedHosts.newValue, {toProxyScript: true});
|
||||
|
||||
Reference in New Issue
Block a user