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
No known key found for this signature in database
GPG Key ID: 84E3B692456B6840

View File

@ -27,7 +27,7 @@ var connectionLost = false;
var connectionTimer; var connectionTimer;
var count = 1; var count = 1;
var reconnectInterval = 4000; 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() function tryReconnect()
{ {
@ -55,7 +55,7 @@ function connectionLostAction()
{ {
connectionLost = true; connectionLost = true;
// if we changed the webui port we connect faster // if we changed the webui port we connect faster
if(window.fastReconnect){ if(window.fastReconnect) {
window.fastReconnect = false; window.fastReconnect = false;
reconnectInterval = 2000; reconnectInterval = 2000;
} }