History

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

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

Jasper van Merle committed 7 years ago

Commit 377fce42 parents def4b28 1bc20db1 file · +1 −1Browse files

Unified · Split

assets/javascripts/app/app.coffee+1−1
@@ -254,7 +254,7 @@ · 253 unmodified lines
254 matchMedia: !!window.matchMedia254 matchMedia: !!window.matchMedia
255 insertAdjacentHTML: !!document.body.insertAdjacentHTML255 insertAdjacentHTML: !!document.body.insertAdjacentHTML
256 defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false256 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 value259 for key, value of features when not value
260 Raven.captureMessage "unsupported/#{key}", level: 'info'260 Raven.captureMessage "unsupported/#{key}", level: 'info'