From 6e6d6f5892277bdc95bd424204f20e7257b7a960 Mon Sep 17 00:00:00 2001 From: Paulchen-Panther Date: Sun, 21 Jul 2019 15:38:18 +0200 Subject: [PATCH] Fix WebUI reconnect Signed-off-by: Paulchen-Panther --- assets/webconfig/content/connection_lost.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/webconfig/content/connection_lost.html b/assets/webconfig/content/connection_lost.html index 95cd38ec..0d95d2a2 100644 --- a/assets/webconfig/content/connection_lost.html +++ b/assets/webconfig/content/connection_lost.html @@ -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; }