From a6607a006942e4f987b790360368761d5b4b72c9 Mon Sep 17 00:00:00 2001 From: ari melody Date: Mon, 2 Oct 2023 06:37:06 +0100 Subject: [PATCH] haha whoops --- public/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;