more .eslintrc.json and fixes

This commit is contained in:
YFdyh000
2017-07-09 06:12:28 +08:00
parent a547c672e7
commit 4af2a8a028
9 changed files with 51 additions and 7 deletions

View File

@@ -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});