typeOf bugfix

This commit is contained in:
Blaz Kristan 2023-04-26 14:45:39 +02:00
parent a6052d7900
commit 95f9e97af8

View File

@ -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];