Skip to content

Commit 4c5fc75

Browse files
fix: reduce verbosity
1 parent ea40238 commit 4c5fc75

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/utils/css-supports.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
const cssSupports = (property: string, value: string): boolean => {
22
const hasCssSupports = 'CSS' in window && 'supports' in window.CSS
3-
if (!hasCssSupports) {
4-
return true
5-
}
6-
return window.CSS.supports(property, value)
3+
return hasCssSupports ? window.CSS.supports(property, value) : true
74
}
85

96
export default cssSupports

0 commit comments

Comments
 (0)