Skip to content

Commit 96e3df6

Browse files
committed
Use HTTPS Everywhere's logger
1 parent 1bcb41a commit 96e3df6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/chrome/content/code/FennecUI.jsm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ var popupInfo = {
6767
getApplicableList: function () {
6868
var domWin = aWindow.BrowserApp.selectedTab.window;
6969
if (!(domWin instanceof CI.nsIDOMWindow)) {
70-
aWindow.console.log('something went wrong getting top window');
70+
HTTPSEverywhere.log(5,'something went wrong getting top window');
7171
return null;
7272
}
7373
return HTTPSEverywhere.getExpando(domWin,"applicable_rules", null);
7474
},
7575
fill: function() {
7676
this.clear();
7777
this.alist = this.getApplicableList();
78-
//aWindow.console.log("applicable list: "+JSON.stringify(this.alist));
78+
HTTPSEverywhere.log(5,"applicable list: "+JSON.stringify(this.alist.active));
7979
for (var activeRule in this.alist.active) {
8080
if (this.alist.active.hasOwnProperty(activeRule)) {
8181
this.ruleItems.push({ label: activeRule, selected: true });
@@ -117,13 +117,13 @@ var urlbarOptions = {
117117
if (popupInfo.rules.length !== db.length) {
118118
// Why does db sometimes have an extra entry that doesn't correspond
119119
// to any of the ruleItems? No idea, but let's log it.
120-
aWindow.console.log("popupInfo length not same as button response");
121-
aWindow.console.log(JSON.stringify(popupInfo.rules));
122-
aWindow.console.log(JSON.stringify(db));
120+
HTTPSEverywhere.log(5,"popupInfo length not same as button response");
121+
HTTPSEverywhere.log(5,JSON.stringify(popupInfo.rules));
122+
HTTPSEverywhere.log(5,JSON.stringify(db));
123123
}
124124
for (var i=0; i<popupInfo.rules.length; i++) {
125125
if (popupInfo.ruleStatus[i] !== db[i]) {
126-
aWindow.console.log("toggling: "+JSON.stringify(popupInfo.rules[i]));
126+
HTTPSEverywhere.log(5,"toggling: "+JSON.stringify(popupInfo.rules[i]));
127127
popupInfo.rules[i].toggle();
128128
}
129129
}

0 commit comments

Comments
 (0)