Skip to content

Commit cfc9f71

Browse files
committed
hex parseInt radix
1 parent 5c5b385 commit cfc9f71

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)