kopia lustrzana https://github.com/Aircoookie/WLED
Remove error Toast after 10s.
rodzic
09bcf34050
commit
8a30c6347e
|
@ -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)
|
||||
{
|
||||
|
|
1568
wled00/html_ui.h
1568
wled00/html_ui.h
Plik diff jest za duży
Load Diff
Ładowanie…
Reference in New Issue