diff --git a/wled00/data/index.js b/wled00/data/index.js index 54d6ac05..6b4602ec 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -286,7 +286,7 @@ function showErrorToast() showToast('Connection to light failed!', true); } -function clearErrorToast() {gId("toast").className = gId("toast").className.replace("error", "");} +function clearErrorToast() {gId("toast").classList.remove("error");} function getRuntimeStr(rt) { @@ -498,8 +498,7 @@ function loadFXData(callback = null) clearErrorToast(); fxdata = json||[]; // add default value for Solid - fxdata.shift(); - fxdata.unshift("@;!;"); + fxdata.shift().unshift("@;!;"); }) .catch(function (error) { fxdata = []; @@ -547,9 +546,9 @@ function populatePresets(fromls) cn += `