@@ -73,7 +73,7 @@ let settings = {
7373 const proxyScriptURL = "core-firefox-proxy.js" ;
7474 const proxyScriptExtentionURL = browser . runtime . getURL ( proxyScriptURL ) ;
7575 let currentTab = null ;
76- let currentOptionsSyncSettings = false ;
76+ let currentOptionsSyncSettings = false ;
7777
7878 // -------------------------
7979 function setDebug ( isDebug ) {
@@ -1433,9 +1433,9 @@ let settings = {
14331433 } else {
14341434 // sync is disabled
14351435 syncedSettings . options . syncSettings = false ;
1436- }
1436+ }
14371437
1438- currentOptionsSyncSettings = syncedSettings . options . syncSettings ;
1438+ currentOptionsSyncSettings = syncedSettings . options . syncSettings ;
14391439 }
14401440 } catch ( e ) {
14411441 debug . error ( `settingsOperation.readSyncedSettings> onGetSyncData error: ${ e } \r\n ${ data } ` ) ;
@@ -1475,9 +1475,9 @@ let settings = {
14751475 } else {
14761476 // sync is disabled
14771477 syncedSettings . options . syncSettings = false ;
1478- }
1478+ }
14791479
1480- currentOptionsSyncSettings = syncedSettings . options . syncSettings ;
1480+ currentOptionsSyncSettings = syncedSettings . options . syncSettings ;
14811481 }
14821482 } catch ( e ) {
14831483 debug . error ( `settingsOperation.onGetSyncData error: ${ e } \r\n ${ data } ` ) ;
@@ -1630,11 +1630,11 @@ let settings = {
16301630
16311631 } ) ;
16321632 } ,
1633- saveAllSync : function ( ) {
1634- if ( ! settings . options . syncSettings &&
1635- ! currentOptionsSyncSettings ) {
1636- return ;
1637- }
1633+ saveAllSync : function ( ) {
1634+ if ( ! settings . options . syncSettings &&
1635+ ! currentOptionsSyncSettings ) {
1636+ return ;
1637+ }
16381638
16391639 // before anything save everything in local
16401640 settingsOperation . saveAllLocal ( true ) ;
@@ -1643,9 +1643,9 @@ let settings = {
16431643
16441644 try {
16451645 polyfill . storageSyncSet ( saveObject ,
1646- function ( ) {
1647- currentOptionsSyncSettings = settings . options . syncSettings ;
1648- } ,
1646+ function ( ) {
1647+ currentOptionsSyncSettings = settings . options . syncSettings ;
1648+ } ,
16491649 function ( error ) {
16501650 debug . error ( `settingsOperation.saveAllSync error: ${ error . message } ` + saveObject ) ;
16511651 } ) ;
@@ -1801,7 +1801,7 @@ let settings = {
18011801 return validateResult ;
18021802 }
18031803
1804- // good
1804+ // good
18051805 upcomingServers . push ( server ) ;
18061806 }
18071807
@@ -1822,7 +1822,7 @@ let settings = {
18221822 return validateResult ;
18231823 }
18241824
1825- // good
1825+ // good
18261826 upcomingRules . push ( rule ) ;
18271827 }
18281828
@@ -2213,7 +2213,7 @@ let settings = {
22132213
22142214 let rule = proxyRules . getRuleBySource ( domain ) ;
22152215
2216- // don't add if it is already there
2216+ // don't add if it is already there
22172217 if ( rule == null )
22182218 proxyRules . addDomain ( domain ) ;
22192219 }
@@ -2339,11 +2339,11 @@ let settings = {
23392339 for ( let subscription of settings . proxyServerSubscriptions ) {
23402340 if ( ! subscription . enabled ) continue ;
23412341
2342- // refresh is not requested
2342+ // refresh is not requested
23432343 if ( ! ( subscription . refreshRate > 0 ) )
23442344 continue ;
23452345
2346- // it should be active, don't remove it
2346+ // it should be active, don't remove it
23472347 serverExistingNames . push ( subscription . name ) ;
23482348
23492349 let shouldCreate = false ;
0 commit comments