Skip to content

Commit

Permalink
refactor: to use hex in request if color ends in FF
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivelin Iliev committed Apr 1, 2021
1 parent 54a3da9 commit 40168e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/demo/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let preview = {
const params = Array.from(document.querySelectorAll(".param")).reduce(
(acc, next) => {
let obj = { ...acc };
obj[next.id] = next.value.replace(/#/g, "");
obj[next.id] = next.value.replace(/#/g, "").replace(/(F|f){2}$/, "");
return obj;
},
{}
Expand Down

0 comments on commit 40168e9

Please sign in to comment.