Skip to content

Commit

Permalink
Update for Private Tab 0.2.1.3+, handle toggling using duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Feb 1, 2017
1 parent 3f2282a commit d74dd04
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion chrome/content/ownWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,13 @@ var linkPropsPlusWnd = {
this.fixWindowHeight();
}
else if(type == "PrivateTab:PrivateChanged") {
if((e.originalTarget || e.target) == this.parentTab)
var tab = e.originalTarget || e.target;
if(tab == this.parentTab)
this.setTitle();
else if(e.explicitOriginalTarget == this.parentTab) { // Private Tab 0.2.1.3+
this.parentTab = tab;
this.setTitle();
}
}
else if(type == "TabClose") {
if((e.originalTarget || e.target) == this.parentTab)
Expand Down

0 comments on commit d74dd04

Please sign in to comment.