Skip to content
This repository was archived by the owner on Nov 4, 2020. It is now read-only.

Commit 12ceb2d

Browse files
diracdeltassemenko
authored andcommitted
Stylistic fixes, linting
1 parent b3896f5 commit 12ceb2d

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

chromium/background.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ chrome.storage.sync.get({httpNowhere: false}, function(item) {
3838
});
3939
chrome.storage.onChanged.addListener(function(changes, areaName) {
4040
if (areaName === 'sync') {
41-
for (key in changes) {
42-
if (key !== 'httpNowhere') {
43-
return;
44-
} else {
41+
for (var key in changes) {
42+
if (key === 'httpNowhere') {
4543
httpNowhereOn = changes[key].newValue;
4644
setIconColor();
4745
}
@@ -75,7 +73,7 @@ var setIconColor = function() {
7573
chrome.browserAction.setIcon({
7674
path: newIconPath
7775
});
78-
}
76+
};
7977

8078
/*
8179
for (var v in localStorage) {
@@ -307,7 +305,7 @@ function sortSwitchPlanner(tab_id, rewritten) {
307305
var score = activeCount * 100 + passiveCount;
308306
asset_host_list.push([score, activeCount, passiveCount, asset_host]);
309307
}
310-
asset_host_list.sort(function(a,b){return a[0]-b[0]});
308+
asset_host_list.sort(function(a,b){return a[0]-b[0];});
311309
return asset_host_list;
312310
}
313311

0 commit comments

Comments
 (0)