We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9e439b + 8121bc0 commit 5d2c4edCopy full SHA for 5d2c4ed
1 file changed
src/display/display_utils.js
@@ -604,9 +604,8 @@ function getRGB(color) {
604
if (color.startsWith("rgba(")) {
605
return color
606
.slice(/* "rgba(".length */ 5, -1) // Strip out "rgba(" and ")".
607
- .split(",")
608
- .map(x => parseInt(x))
609
- .slice(0, 3);
+ .split(",", 3)
+ .map(x => parseInt(x));
610
}
611
612
warn(`Not a valid color format: "${color}"`);
0 commit comments