mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
fhemweb.js: add reload for 401 (Forum #56509)
git-svn-id: https://svn.fhem.de/fhem/trunk@11936 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ea1d8e37ba
commit
fa89f1db3b
@ -591,6 +591,10 @@ function
|
|||||||
FW_doUpdate()
|
FW_doUpdate()
|
||||||
{
|
{
|
||||||
if(FW_pollConn.readyState == 4 && !FW_leaving) {
|
if(FW_pollConn.readyState == 4 && !FW_leaving) {
|
||||||
|
if(FW_pollConn.status == "401") {
|
||||||
|
location.reload();
|
||||||
|
return;
|
||||||
|
}
|
||||||
FW_errmsg("Connection lost, trying a reconnect every 5 seconds.", 4900);
|
FW_errmsg("Connection lost, trying a reconnect every 5 seconds.", 4900);
|
||||||
setTimeout(FW_longpoll, 5000);
|
setTimeout(FW_longpoll, 5000);
|
||||||
return; // some problem connecting
|
return; // some problem connecting
|
||||||
|
Loading…
x
Reference in New Issue
Block a user