dynamic-net-filtering.js length typos

Corrected length typos in dynamic-net-filtering.js in the is3rdParty function.
This commit is contained in:
barri 2015-01-26 10:27:58 +01:00
parent 850039dfa3
commit 206eda785f

View file

@ -209,7 +209,7 @@ var is3rdParty = function(srcHostname, desHostname) {
return true;
}
// Do not confuse 'example.com' with 'anotherexample.com'
return desHostname.lenght !== srcDomain.lenght &&
return desHostname.length !== srcDomain.length &&
desHostname.charAt(desHostname.length - srcDomain.length - 1) !== '.';
};