webhook/webhook-cms — pull request #173 by StevenGilligan (2014-11-11 00:07:19+00:00)
Title: fixes image upload url for self hosted website

Fixes https://github.com/webhook/webhook-server-open/issues/5

In cms.html there's this bit of code :

```javascript
{% if firebase_conf.custom %}

{% else %}

{% endif %}
```
which sets up a window.ENV object with some required values for self-hosting. However, in environment.js the `window.ENV.siteDNS` value was being overridden and simply performing a check for `!window.ENV.selfHosted` fixes that issue while maintaining backwards compatibility.