Skip to content

Commit 3732344

Browse files
committed
Fixed breaking change
fix lint log fixed breaking change
1 parent 24b9431 commit 3732344

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/color.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module.exports = class Color {
1818
if (Array.isArray(value)) {
1919
return null;
2020
}
21+
value = value.toRGBAString();
2122
break;
2223
default:
2324
return null;
@@ -28,7 +29,7 @@ module.exports = class Color {
2829
}
2930

3031
try {
31-
var parsedColor = new ParsedColor(value);
32+
var parsedColor = ParsedColor(value);
3233
} catch (error) {
3334
return null;
3435
}

0 commit comments

Comments
 (0)