Skip to content

Commit 1bc20db

Browse files
authored
Don’t throw when the CSS global is not defined
1 parent 4edbe9b commit 1bc20db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/javascripts/app/app.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
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'

0 commit comments

Comments
 (0)