From 95f9e97af8ba5c5d71e1fec5ce003b16d05f5c7e Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Wed, 26 Apr 2023 14:45:39 +0200 Subject: [PATCH] typeOf bugfix --- wled00/data/cpal/cpal.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/data/cpal/cpal.htm b/wled00/data/cpal/cpal.htm index 023fc075..cfd1a54f 100644 --- a/wled00/data/cpal/cpal.htm +++ b/wled00/data/cpal/cpal.htm @@ -584,7 +584,7 @@ let gradientColors = ""; for (let j = 0; j < palette.palette.length; j += 2) { const position = palette.palette[j]; - if (typeOf(palette.palette[j+1]) === "string") { + if (typeof(palette.palette[j+1]) === "string") { gradientColors += `#${palette.palette[j+1]} ${position/255*100}%, `; } else { const red = palette.palette[j + 1];