Remove error Toast after 10s.

This commit is contained in:
Blaz Kristan 2022-02-02 21:03:26 +01:00
parent 09bcf34050
commit 8a30c6347e
2 changed files with 789 additions and 785 deletions

View File

@ -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)
{

File diff suppressed because it is too large Load Diff