diff --git a/libs/blinkstick.js b/libs/blinkstick.js index 0ff5d3b..5508017 100644 --- a/libs/blinkstick.js +++ b/libs/blinkstick.js @@ -34,7 +34,7 @@ function powerOff() { // parse a color object from given request arguments function parseColor(value) { - if (value == RANDOM) { + if (!value || value == RANDOM) { return RANDOM; } let parsedColor = parseRGBColor(value);