History

Merge pull request #1005 from j-f1/fix-css-supports-check

Don’t throw when the `CSS` global is not defined

Jasper van Merle committed 7 years ago

Commit 377fce42 parents def4b28 1bc20db1 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
@@ -254,7 +254,7 @@ · 253 unmodified lines
254254 matchMedia: !!window.matchMedia
255255 insertAdjacentHTML: !!document.body.insertAdjacentHTML
256256 defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false
257− cssVariables: CSS.supports and CSS.supports('(--t: 0)')
257+ cssVariables: !!CSS?.supports?('(--t: 0)')
258258
259259 for key, value of features when not value
260260 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