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
254254 matchMedia: !!window.matchMedia
255255 insertAdjacentHTML: !!document.body.insertAdjacentHTML
256256 defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false
257− cssVariables: CSS.supports and CSS.supports('(--t: 0)')
257+ cssVariables: !!CSS?.supports?('(--t: 0)')
258258
259259 for key, value of features when not value
260260 Raven.captureMessage "unsupported/#{key}", level: 'info'