Don’t throw when the `CSS` global is not defined

pull/1005/head
Jed Fox 6 years ago committed by GitHub
parent 4edbe9b597
commit 1bc20dbc0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -252,7 +252,7 @@
matchMedia: !!window.matchMedia
insertAdjacentHTML: !!document.body.insertAdjacentHTML
defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false
cssVariables: CSS.supports and CSS.supports('(--t: 0)')
cssVariables: !!CSS?.supports?('(--t: 0)')
for key, value of features when not value
Raven.captureMessage "unsupported/#{key}", level: 'info'

Loading…
Cancel
Save