Skip to content

Commit 4853e10

Browse files
committed
Autoreload selected tab
1 parent 49f81f9 commit 4853e10

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/chrome/content/code/FennecUI.jsm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ var urlbarOptions = {
7575
if (data.button === -1) { return null; }
7676
for (var i=0; i<data.button.length; i++) {
7777
if (popupInfo.ruleStatus[i] !== data.button[i]) {
78-
popupInfo.rules[i].toggle();
7978
aWindow.console.log("toggling: "+JSON.stringify(popupInfo.rules[i]));
79+
popupInfo.rules[i].toggle();
8080
} else {
8181
aWindow.console.log("skipping: "+JSON.stringify(popupInfo.rules[i]));
8282
}
@@ -125,7 +125,10 @@ function getPopupInfo() {
125125
return { ruleItems: ruleItems, rules: rules, ruleStatus: ruleStatus };
126126
}
127127

128-
function reloadTab() { return; }
128+
function reloadTab() {
129+
// There seems to be no API to do this directly?
130+
aWindow.BrowserApp.selectedTab.window.location.reload();
131+
}
129132

130133
function toggleEnabledState(){
131134
HTTPSEverywhere.toggleEnabledState();

0 commit comments

Comments
 (0)