Skip to content

Commit

Permalink
Do nothing, if view_source.tab = false
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Jan 19, 2016
1 parent ffa41c1 commit 5c03e4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,8 @@ var privateTab = {
patcher.wrapFunction(
window, fnViewSource, fnViewSource,
function before(argsOrDoc) {
if(!prefs.getPref("view_source.tab"))
return;
var w = this.getNotPopupWindow(window, true) || window;
var isPrivate = this.isPrivateContent(w);
_log(fnViewSource + "(): wait for tab to make " + (isPrivate ? "private" : "not private"));
Expand Down

0 comments on commit 5c03e4a

Please sign in to comment.