Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit a856657

Browse files
committed
minor code review before 0.9.4.2
1 parent 49726cf commit a856657

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

js/abp-hide-filters.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ FilterContainer.prototype.addFilterEntry = function(hash, f) {
465465
/******************************************************************************/
466466

467467
FilterContainer.prototype.retrieve = function(url, inSelectors) {
468-
if ( !httpsb.getTemporaryABPFilteringFromPageURL(url) ) {
468+
if ( httpsb.userSettings.parseAllABPHideFilters !== true ||
469+
httpsb.getTemporaryABPFilteringFromPageURL(url) !== true ) {
469470
return;
470471
}
471472
var hostname = pageHostname = httpsb.URI.hostnameFromURI(url);

js/uritools.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Naming convention from https://en.wikipedia.org/wiki/URI_scheme#Examples
3131

3232
// This will inserted as a module in the HTTPSB object.
3333

34-
(function() {
34+
HTTPSB.URI = (function() {
3535

3636
/******************************************************************************/
3737

@@ -405,7 +405,7 @@ URI.toString = function() {
405405

406406
// Export
407407

408-
HTTPSB.URI = URI;
408+
return URI;
409409

410410
/******************************************************************************/
411411

0 commit comments

Comments
 (0)