Remove error Toast after 10s.

pull/2737/head
Blaz Kristan 2022-02-02 21:03:26 +01:00
rodzic 09bcf34050
commit 8a30c6347e
2 zmienionych plików z 789 dodań i 785 usunięć

Wyświetl plik

@ -287,7 +287,11 @@ function showErrorToast()
showToast('Connection to light failed!', true);
}
function clearErrorToast() {gId("toast").classList.remove("error");}
function clearErrorToast()
{
clearTimeout(timeout);
timeout = setTimeout(()=>{gId("toast").classList.remove("error");}, 10000);
}
function getRuntimeStr(rt)
{

Plik diff jest za duży Load Diff