Skip to content

Commit 4ca48db

Browse files
committed
Add catch arg
1 parent 926b6b1 commit 4ca48db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/gradientColorStops.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function() {
1616
try {
1717
const [r, g, b] = toRgba(value)
1818
return `rgba(${r}, ${g}, ${b}, 0)`
19-
} catch {
19+
} catch (_error) {
2020
return `rgba(255, 255, 255, 0)`
2121
}
2222
})()

0 commit comments

Comments
 (0)