mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fix: WebUI reconnect
There was a problem with hashtag based urls. More a browser fault in my view
This commit is contained in:
parent
21206af916
commit
f5d0fe34a8
@ -41,7 +41,14 @@ function tryReconnect()
|
|||||||
|
|
||||||
$.ajax({ url: connURL }).done(function(data) {
|
$.ajax({ url: connURL }).done(function(data) {
|
||||||
window.clearInterval(connectionTimer);
|
window.clearInterval(connectionTimer);
|
||||||
window.location.href = connURL;
|
if(reconnectInterval <= 2000){
|
||||||
|
let url = connURL;
|
||||||
|
if (window.connURL.includes("#"))
|
||||||
|
url = window.connURL.slice(0,window.connURL.indexOf("#"));
|
||||||
|
window.location.replace(url);
|
||||||
|
} else {
|
||||||
|
window.location.reload();
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.fail( function( jqXHR, textStatus ) {
|
.fail( function( jqXHR, textStatus ) {
|
||||||
count++;
|
count++;
|
||||||
|
Loading…
Reference in New Issue
Block a user