ccampbell/chromelogger — pull request #50 by okonomiyaki3000 (2014-04-11 15:47:46+00:00)
Title: Identify activity by host, not tld.

We had better use the full `host` instead of "tld". In fact, the `_getTopLevelDomain` function actually gets the top and second level domain but this is wrong. Because for domains like `example.com.au` or `example.co.jp` the function will return `com.au` or `co.jp` which is way too broad. For a domain like `localhost` which is only one level, it will return something like `undefined.localhost` which is kind of weird. Also, it's quite wrong if you're accessing a site by ip address. Also, it doesn't take port into consideration at all. So identifying pages where ChromeLogger should be active by host is the right way to do it.