Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 12ceb2d

Browse filesBrowse files
diracdeltassemenko
authored andcommitted
Stylistic fixes, linting
1 parent b3896f5 commit 12ceb2d
Copy full SHA for 12ceb2d

1 file changed

+4-6Lines changed: 4 additions & 6 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎chromium/background.js‎

Copy file name to clipboardExpand all lines: chromium/background.js
+4-6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.