haha whoops

This commit is contained in:
ari melody 2023-10-02 06:37:06 +01:00
parent cd3912293f
commit a6607a0069
Signed by: ari
GPG key ID: CF99829C92678188

View file

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