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

Commit

Permalink
better hostname test
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed May 19, 2014
1 parent 8aff806 commit c8cd9c5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/abp-hide-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ FilterPlain.prototype.retrieve = function(s, out) {
if ( s === this.s ) {
out.push(this.s);
}
// if ( s === this.s.slice(0, s.length) ) {
// out.push(this.s);
// }
};

/******************************************************************************/
Expand All @@ -95,7 +92,7 @@ var FilterPlainHostname = function(s, hostname) {
};

FilterPlainHostname.prototype.retrieve = function(s, out) {
if ( s === this.s && pageHostname === this.hostname ) {
if ( s === this.s && pageHostname.slice(-this.hostname.length) === this.hostname ) {
out.push(this.s);
}
};
Expand Down

0 comments on commit c8cd9c5

Please sign in to comment.