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
252 matchMedia: !!window.matchMedia252 matchMedia: !!window.matchMedia
253 insertAdjacentHTML: !!document.body.insertAdjacentHTML253 insertAdjacentHTML: !!document.body.insertAdjacentHTML
254 defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false254 defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false
255 cssVariables: CSS.supports and CSS.supports('(--t: 0)')255 cssVariables: !!CSS?.supports?('(--t: 0)')
256 256
257 for key, value of features when not value257 for key, value of features when not value
258 Raven.captureMessage "unsupported/#{key}", level: 'info'258 Raven.captureMessage "unsupported/#{key}", level: 'info'