Minor cleaning.
This commit is contained in:
parent
409c1b7584
commit
9b7b1d6a61
@ -286,7 +286,7 @@ function showErrorToast()
|
|||||||
showToast('Connection to light failed!', true);
|
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)
|
function getRuntimeStr(rt)
|
||||||
{
|
{
|
||||||
@ -498,8 +498,7 @@ function loadFXData(callback = null)
|
|||||||
clearErrorToast();
|
clearErrorToast();
|
||||||
fxdata = json||[];
|
fxdata = json||[];
|
||||||
// add default value for Solid
|
// add default value for Solid
|
||||||
fxdata.shift();
|
fxdata.shift().unshift("@;!;");
|
||||||
fxdata.unshift("@;!;");
|
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
fxdata = [];
|
fxdata = [];
|
||||||
@ -832,15 +831,9 @@ function genPalPrevCss(id)
|
|||||||
} else {
|
} else {
|
||||||
if (selColors) {
|
if (selColors) {
|
||||||
let e = element[1] - 1;
|
let e = element[1] - 1;
|
||||||
//if (Array.isArray(selColors[e])) {
|
|
||||||
r = selColors[e][0];
|
r = selColors[e][0];
|
||||||
g = selColors[e][1];
|
g = selColors[e][1];
|
||||||
b = selColors[e][2];
|
b = selColors[e][2];
|
||||||
//} else {
|
|
||||||
// r = (selColors[e]>>16) & 0xFF;
|
|
||||||
// g = (selColors[e]>> 8) & 0xFF;
|
|
||||||
// b = (selColors[e] ) & 0xFF;
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (index === false) {
|
if (index === false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user