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