set color to 'random' if undefined
This commit is contained in:
parent
231bcd19cc
commit
5231d683b0
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ function powerOff() {
|
||||||
|
|
||||||
// parse a color object from given request arguments
|
// parse a color object from given request arguments
|
||||||
function parseColor(value) {
|
function parseColor(value) {
|
||||||
if (value == RANDOM) {
|
if (!value || value == RANDOM) {
|
||||||
return RANDOM;
|
return RANDOM;
|
||||||
}
|
}
|
||||||
let parsedColor = parseRGBColor(value);
|
let parsedColor = parseRGBColor(value);
|
||||||
|
|
Loading…
Reference in a new issue