Skip to content

Commit 40168e9

Browse files
author
Ivelin Iliev
committed
refactor: to use hex in request if color ends in FF
1 parent 54a3da9 commit 40168e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/demo/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let preview = {
1010
const params = Array.from(document.querySelectorAll(".param")).reduce(
1111
(acc, next) => {
1212
let obj = { ...acc };
13-
obj[next.id] = next.value.replace(/#/g, "");
13+
obj[next.id] = next.value.replace(/#/g, "").replace(/(F|f){2}$/, "");
1414
return obj;
1515
},
1616
{}

0 commit comments

Comments
 (0)