Skip to content

Commit f4a618d

Browse files
committed
Reload the selected tab when a rule is toggled
This mimics the behavior of the Firefox addon. Usually someone is trying to test whether disabling a rule fixes some bug on the site, in which case they would want to reload it anyway. We should just do it automatically.
1 parent 9c0d628 commit f4a618d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chromium/popup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ function toggleRuleLine(checkbox, ruleset) {
1111
} else {
1212
delete localStorage[ruleset.name];
1313
}
14+
// Now reload the selected tab of the current window.
15+
chrome.tabs.reload();
1416
}
1517

1618
function createRuleLine(ruleset) {

0 commit comments

Comments
 (0)