Merge pull request #1530 from bostrt/tls-websockets

Update websocket URL so proxy port can be utilized. Resolves #1421.
This commit is contained in:
Griatch 2017-12-15 23:39:09 +01:00 committed by GitHub
commit aca4605d47
2 changed files with 4 additions and 4 deletions

View file

@ -44,7 +44,7 @@ JQuery available.
{% endif %}
{% if websocket_url %}
var wsurl = "{{websocket_url}}:{{websocket_port}}";
var wsurl = "{{websocket_url}}";
{% else %}
var wsurl = "ws://" + this.location.hostname + ":{{websocket_port}}";
{% endif %}