Merge pull request #99 from tophf/ignore-port-in-domain
Ignore port number in url domain
This commit is contained in:
commit
b31ac3e8b6
|
@ -115,7 +115,7 @@ function getDomains(url) {
|
|||
if (url.indexOf("file:") == 0) {
|
||||
return [];
|
||||
}
|
||||
var d = /.*?:\/*([^\/]+)/.exec(url)[1];
|
||||
var d = /.*?:\/*([^\/:]+)/.exec(url)[1];
|
||||
var domains = [d];
|
||||
while (d.indexOf(".") != -1) {
|
||||
d = d.substring(d.indexOf(".") + 1);
|
||||
|
|
Loading…
Reference in New Issue
Block a user