Skip to content

Commit

Permalink
Fix typo in previous commit: correctly check for search.xml in stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Jan 12, 2014
1 parent 7afcc8e commit 1c43d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3159,7 +3159,7 @@ var windowsObserver = {
return { value: isPrivate };
}
var stack = new Error().stack;
var fromSearchBar = stack.indexOf("@chrome://browser/content/search/search.xml:" != -1);
var fromSearchBar = stack.indexOf("@chrome://browser/content/search/search.xml:") != -1;
var fromDownloads = !fromSearchBar && prefs.get("patchDownloads") && (
stack.indexOf("@chrome://browser/content/downloads/downloads.js:") != -1
|| stack.indexOf("@resource://app/modules/DownloadsCommon.jsm:") != -1
Expand Down

0 comments on commit 1c43d7d

Please sign in to comment.