Skip to content

Commit

Permalink
Manually hide tracking protection icon for normal tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Dec 7, 2015
1 parent d56dcb6 commit 3a95535
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3771,10 +3771,15 @@ var privateTab = {
this.privateChanged(document, isPrivate);
},
privateChanged: function(document, isPrivate) {
var window = document.defaultView;
if(prefs.get("usePrivateWindowStyle"))
this.updateTabsInTitlebar(document);
if(prefs.get("patchDownloads"))
this.updateDownloadPanel(document.defaultView, isPrivate);
this.updateDownloadPanel(window, isPrivate);
if(!isPrivate && "TrackingProtection" in window) window.setTimeout(function() {
if(!window.TrackingProtection.enabled)
window.TrackingProtection.icon.removeAttribute("state");
}, 0);
},
updateTabsInTitlebar: function(document, force) {
var window = document.defaultView;
Expand Down

0 comments on commit 3a95535

Please sign in to comment.