This looks a little weird. Isn't this just doing

```js
if(!this.host) {
  this.host = window.location.host;
}
```

Besides that I'd merge this in because it makes sense. I was thinking about a good way for testing this but I don't think there is (even checking the `window.location` in an iframe wouldn't really tell us anything).