File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- var backgroundPage = null ;
1+ "use strict" ;
2+ var backgroundPage = chrome . extension . getBackgroundPage ( ) ;
23var stableRules = null ;
34var unstableRules = null ;
45var hostReg = / .* \/ \/ [ ^ $ / ] * \/ / ;
@@ -15,7 +16,7 @@ function toggleRuleLine(checkbox, ruleset) {
1516 } else {
1617 delete localStorage [ ruleset . name ] ;
1718 // purge the name from the cache so that this unchecking is persistent.
18- backgroundPage . ruleCache . remove ( ruleset . name ) ;
19+ backgroundPage . all_rules . ruleCache . remove ( ruleset . name ) ;
1920 }
2021 // Now reload the selected tab of the current window.
2122 chrome . tabs . reload ( ) ;
@@ -85,7 +86,6 @@ function gotTab(tab) {
8586}
8687
8788document . addEventListener ( "DOMContentLoaded" , function ( ) {
88- backgroundPage = chrome . extension . getBackgroundPage ( ) ;
8989 stableRules = document . getElementById ( "StableRules" ) ;
9090 unstableRules = document . getElementById ( "UnstableRules" ) ;
9191 chrome . tabs . getSelected ( null , gotTab ) ;
You can’t perform that action at this time.
0 commit comments