History

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

Jed Fox committed 7 years ago

Commit 1bc20db1 parent 4edbe9b1 file · +1 −1Browse files

Unified · Split

assets/javascripts/app/app.coffee+1−1
@@ -252,7 +252,7 @@ · 251 unmodified lines
252252 matchMedia: !!window.matchMedia
253253 insertAdjacentHTML: !!document.body.insertAdjacentHTML
254254 defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false
255− cssVariables: CSS.supports and CSS.supports('(--t: 0)')
255+ cssVariables: !!CSS?.supports?('(--t: 0)')
256256
257257 for key, value of features when not value
258258 Raven.captureMessage "unsupported/#{key}", level: 'info'