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

Showing the changes to assets/javascripts (1 of 1 file). Show all

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'

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t