From 499d626214f722f2427736a1aabd7b6ce3be2974 Mon Sep 17 00:00:00 2001 From: agatemosu Date: Tue, 30 Jul 2024 09:49:21 +0200 Subject: [PATCH] use new pickr instead of pickr.create --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index b607979..3f03c87 100644 --- a/script.js +++ b/script.js @@ -75,7 +75,7 @@ document.addEventListener("mousedown", (e) => { }); function createColorPicker(colorPicker, tierLabel, defaultColor) { - const pickr = Pickr.create({ + const pickr = new Pickr({ el: colorPicker, theme: "monolith", default: defaultColor,