Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
this fixes #473
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jan 11, 2015
1 parent adbbd74 commit 5201946
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/js/dynamic-net-filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ Matrix.prototype.clearRegisters = function() {

var is3rdParty = function(srcHostname, desHostname) {
var srcDomain = domainFromHostname(srcHostname);
if ( srcDomain === '' ) {
srcDomain = desHostname;
}
if ( desHostname.slice(0 - srcDomain.length) !== srcDomain ) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ var getHostnameDict = function(hostnameToCountMap) {
if ( r.hasOwnProperty(hostname) ) {
continue;
}
domain = domainFromHostname(hostname);
domain = domainFromHostname(hostname) || hostname;
counts = hostnameToCountMap[domain] || 0;
r[domain] = {
domain: domain,
Expand Down

0 comments on commit 5201946

Please sign in to comment.