Skip to content

Commit 0bee46c

Browse files
committed
Abort onLocationChange if HTTPS-E is disabled
1 parent 7361176 commit 0bee46c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/components/https-everywhere.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ HTTPSEverywhere.prototype = {
300300
// for the context menu in the UI). This will be appended to as various
301301
// content is embedded / requested by JavaScript.
302302
onLocationChange: function(browser) {
303+
if (!this.prefs.getBoolPref("globalEnabled")) {
304+
return;
305+
}
303306
try {
304307
this.newApplicableListForBrowser(browser);
305308
} catch (e) {

0 commit comments

Comments
 (0)