From 4dfee17f5ec61cb39b7e598a27e25ac8fb4e4bef Mon Sep 17 00:00:00 2001 From: Rhys Meaclem Date: Fri, 2 Aug 2019 23:52:00 +1200 Subject: [PATCH] Allow to work behind SSL reverse proxy --- resources/PluginIndex.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/PluginIndex.html b/resources/PluginIndex.html index 275c091..05d1cfe 100755 --- a/resources/PluginIndex.html +++ b/resources/PluginIndex.html @@ -670,7 +670,7 @@ } function doStuff() { - socket = new WebSocket("ws://" + window.location.href.replace("http://", "") + "app"); + socket = new WebSocket(window.location.href.replace(/^http/, "ws") + "app"); socket.onopen = function(evt) { term = new Terminal({ rows: Math.floor(($(window).height() - 301)/ 12),