mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Don’t throw when the CSS
global is not defined
This commit is contained in:
parent
4edbe9b597
commit
1bc20dbc0d
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@
|
|||
matchMedia: !!window.matchMedia
|
||||
insertAdjacentHTML: !!document.body.insertAdjacentHTML
|
||||
defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false
|
||||
cssVariables: CSS.supports and CSS.supports('(--t: 0)')
|
||||
cssVariables: !!CSS?.supports?('(--t: 0)')
|
||||
|
||||
for key, value of features when not value
|
||||
Raven.captureMessage "unsupported/#{key}", level: 'info'
|
||||
|
|
Loading…
Reference in a new issue