Skip to content

Commit

Permalink
Rename: patchViewSourceTab() -> patchViewSource()
Browse files Browse the repository at this point in the history
(related to #234)
  • Loading branch information
Infocatcher committed Sep 13, 2016
1 parent fa7674e commit 20812dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ var privateTab = {
this.patchWarnAboutClosingWindow(window, true);
// Wait to not break BROWSER_NEW_TAB_URL in detached window
this.patchTabBrowserDND(window, gBrowser, true);
this.patchViewSourceTab(window, true);
this.patchViewSource(window, true);
}.bind(this), 50);
// Import data from privateTab.tabLabelIsEmpty() API
if(!this.emptyTabLabelsImported) {
Expand Down Expand Up @@ -549,7 +549,7 @@ var privateTab = {
}
this.patchBrowsers(gBrowser, false, !force);
this.patchTabBrowserDND(window, gBrowser, false, false, !force);
this.patchViewSourceTab(window, false, !force);
this.patchViewSource(window, false, !force);
this.patchWarnAboutClosingWindow(window, false, !force);
if(!prefs.get("allowOpenExternalLinksInPrivateTabs"))
this.patchBrowserLoadURI(window, false, !force);
Expand Down Expand Up @@ -931,7 +931,7 @@ var privateTab = {
forceDestroy
);
},
patchViewSourceTab: function(window, applyPatch, forceDestroy) {
patchViewSource: function(window, applyPatch, forceDestroy) {
var fnViewSource = "BrowserViewSourceOfDocument";
if(!(fnViewSource in window)) {
_log("Can't patch " + fnViewSource + "(): function not found");
Expand Down

0 comments on commit 20812dc

Please sign in to comment.