We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea40238 commit 4c5fc75Copy full SHA for 4c5fc75
src/utils/css-supports.ts
@@ -1,9 +1,6 @@
1
const cssSupports = (property: string, value: string): boolean => {
2
const hasCssSupports = 'CSS' in window && 'supports' in window.CSS
3
- if (!hasCssSupports) {
4
- return true
5
- }
6
- return window.CSS.supports(property, value)
+ return hasCssSupports ? window.CSS.supports(property, value) : true
7
}
8
9
export default cssSupports
0 commit comments