File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,10 +38,8 @@ chrome.storage.sync.get({httpNowhere: false}, function(item) {
3838} ) ;
3939chrome . 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/*
8179for (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
You can’t perform that action at this time.
0 commit comments