bigeasy/verbosity — pull request #3 by cdzombak (2012-04-05 12:49:17+00:00)
Title: Fix discovering hostname/path

`location.port` is always `""` for me with Chrome 18, so I changed to check whether we're using HTTP[S] instead. (This also guarantees it'll work via HTTPS or when using a nonstandard port.)

Then I realized that the host-building line needed to take the current path into account, so I did that too.