Skip to content

Commit

Permalink
use new pickr instead of pickr.create
Browse files Browse the repository at this point in the history
  • Loading branch information
agatemosu committed Jul 30, 2024
1 parent 8c62ea6 commit 499d626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 499d626

Please sign in to comment.