Fix WebUI reconnect

Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
This commit is contained in:
Paulchen-Panther
2019-07-21 15:38:18 +02:00
parent 96d79cdef6
commit 6e6d6f5892

View File

@@ -27,7 +27,7 @@ var connectionLost = false;
var connectionTimer;
var count = 1;
var reconnectInterval = 4000;
var connURL = location.protocol+"//"+location.hostname+":"+window.jsonPort+location.pathname+location.hash;
var connURL = window.location.protocol+"//"+window.location.hostname+":"+window.jsonPort+window.location.pathname+window.location.hash;
function tryReconnect()
{
@@ -55,7 +55,7 @@ function connectionLostAction()
{
connectionLost = true;
// if we changed the webui port we connect faster
if(window.fastReconnect){
if(window.fastReconnect) {
window.fastReconnect = false;
reconnectInterval = 2000;
}