Skip to content

Commit 68b5c9c

Browse files
committed
hex parseInt radix
1 parent b1692de commit 68b5c9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib_src/misc/colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ function rgb2hex(rgb) {
4141
}
4242

4343
function hex(x) {
44-
return ("0" + parseInt(x).toString(16)).slice(-2);
44+
return ("0" + parseInt(x, 10).toString(16)).slice(-2)
4545
}

0 commit comments

Comments
 (0)