mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fix WebUI reconnect
Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
This commit is contained in:
parent
96d79cdef6
commit
6e6d6f5892
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user