Don’t throw when the `CSS` global is not defined
Unified · Split
| @@ -254,7 +254,7 @@ · 253 unmodified lines | ||
| 254 | 254 | matchMedia: !!window.matchMedia |
| 255 | 255 | insertAdjacentHTML: !!document.body.insertAdjacentHTML |
| 256 | 256 | defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false |
| 257 | − cssVariables: CSS.supports and CSS.supports('(--t: 0)') | |
| 257 | + cssVariables: !!CSS?.supports?('(--t: 0)') | |
| 258 | 258 | |
| 259 | 259 | for key, value of features when not value |
| 260 | 260 | Raven.captureMessage "unsupported/#{key}", level: 'info' |