History

Update browser requirements

Thibaut Courouble committed 8 years ago

Commit 847cfbb1 parent 01bc3184 files · +13 −28Browse files

Showing the changes to assets/javascripts (2 of 4 files). Show all

Unified · Split

2 files
  1. assets/javascripts/app/app.coffee +1 −6
  2. assets/javascripts/templates/error_tmpl.coffee +4 −7
assets/javascripts/app/app.coffee+1−6
@@ -245,7 +245,7 @@ · 244 unmodified lines
245245 matchMedia: !!window.matchMedia
246246 insertAdjacentHTML: !!document.body.insertAdjacentHTML
247247 defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false
248− cssGradients: supportsCssGradients()
248+ cssVariables: CSS.supports and CSS.supports('--t:0')
249249
250250 for key, value of features when not value
251251 Raven.captureMessage "unsupported/#{key}", level: 'info'
@@ -268,9 +268,4 @@ · 16 unmodified lines
268268 isInvalidLocation: ->
269269 @config.env is 'production' and location.host.indexOf(app.config.production_host) isnt 0
270270
271−supportsCssGradients = ->
272− el = document.createElement('div')
273− el.style.cssText = "background-image: -webkit-linear-gradient(top, #000, #fff); background-image: linear-gradient(to top, #000, #fff);"
274− el.style.backgroundImage.indexOf('gradient') >= 0
275−
276271 $.extend app, Events
assets/javascripts/templates/error_tmpl.coffee+4−7
@@ -56,13 +56,10 @@ app.templates.unsupportedBrowser = """ · 55 unmodified lines
5656 <h1 class="_fail-title">Your browser is unsupported, sorry.</h1>
5757 <p class="_fail-text">DevDocs is an API documentation browser which supports the following browsers:
5858 <ul class="_fail-list">
59− <li>Recent versions of Chrome and Firefox
60− <li>Safari 5.1+
61− <li>Opera 12.1+
62− <li>Internet Explorer 10+
63− <li>iOS 6+
64− <li>Android 4.1+
65− <li>Windows Phone 8+
59+ <li>Recent versions of Firefox, Chrome, or Opera
60+ <li>Safari 9.1+
61+ <li>Edge 16+
62+ <li>iOS 10+
6663 </ul>
6764 <p class="_fail-text">
6865 If you're unable to upgrade, I apologize.

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