diff --git a/public/scripts/main.js b/public/scripts/main.js index 2fdb154..75f2d8f 100644 --- a/public/scripts/main.js +++ b/public/scripts/main.js @@ -299,7 +299,7 @@ const PALETTE = { }; function set_palette(palette) { - if (typeof(palette) === "object" && palette.isArray()) { + if (typeof(palette) === "object" && Array.isArray(palette)) { set_colours(palette[0], palette[1]); console.log(`Palette changed to [${palette}]`); return true;