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
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'

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