Unified · Split
| @@ -154,7 +154,7 @@ · 153 unmodified lines | |||
| 154 | classList: !!document.body.classList | 154 | classList: !!document.body.classList |
| 155 | insertAdjacentHTML: !!document.body.insertAdjacentHTML | 155 | insertAdjacentHTML: !!document.body.insertAdjacentHTML |
| 156 | defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false | 156 | defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false |
| 157 | cssGradients: getComputedStyle(document.querySelector('._header')).backgroundImage isnt 'none' | 157 | cssGradients: supportsCssGradients() |
| 158 | 158 | ||
| 159 | for key, value of features when not value | 159 | for key, value of features when not value |
| 160 | Raven.captureMessage "unsupported/#{key}" | 160 | Raven.captureMessage "unsupported/#{key}" |
| @@ -178,4 +178,9 @@ · 17 unmodified lines | |||
| 178 | isInvalidLocation: -> | 178 | isInvalidLocation: -> |
| 179 | @config.env is 'production' and location.host.indexOf(app.config.production_host) isnt 0 | 179 | @config.env is 'production' and location.host.indexOf(app.config.production_host) isnt 0 |
| 180 | 180 | ||
| 181 | supportsCssGradients = -> | ||
| 182 | el = document.createElement('div') | ||
| 183 | el.style.cssText = "background-image: -webkit-linear-gradient(top, #000, #fff); background-image: linear-gradient(to top, #000, #fff);" | ||
| 184 | el.style.backgroundImage.indexOf('gradient') >= 0 | ||
| 185 | |||
| 181 | $.extend app, Events | 186 | $.extend app, Events |