Merge pull request #1005 from j-f1/fix-css-supports-check

Don’t throw when the `CSS` global is not defined
pull/1028/head
Jasper van Merle 6 years ago committed by GitHub
commit 377fce4772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -254,7 +254,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