Remove error Toast after 10s.
This commit is contained in:
parent
09bcf34050
commit
8a30c6347e
@ -287,7 +287,11 @@ function showErrorToast()
|
|||||||
showToast('Connection to light failed!', true);
|
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)
|
function getRuntimeStr(rt)
|
||||||
{
|
{
|
||||||
|
1568
wled00/html_ui.h
1568
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user