Skip to content

Commit 847cfbb

Browse files
committed
Update browser requirements
1 parent 01bc318 commit 847cfbb

4 files changed

Lines changed: 13 additions & 28 deletions

File tree

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,10 @@ Another driving factor is performance and the fact that everything happens in th
6464

6565
DevDocs being a developer tool, the browser requirements are high:
6666

67-
1. On the desktop:
68-
* Recent version of Chrome, Firefox, or Opera
69-
* Safari 8+
70-
* IE / Edge 10+
71-
2. On mobile:
72-
* iOS 8+
73-
* Android 4.1+
74-
* Windows Phone 8+
67+
* Recent versions of Firefox, Chrome, or Opera
68+
* Safari 9.1+
69+
* Edge 16+
70+
* iOS 10+
7571

7672
This allows the code to take advantage of the latest DOM and HTML5 APIs and make developing DevDocs a lot more fun!
7773

assets/javascripts/app/app.coffee

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
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 @@
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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,10 @@ app.templates.unsupportedBrowser = """
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.

views/unsupported.erb

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,10 @@
1010
<h1 class="_fail-title">Your browser is unsupported, sorry.</h1>
1111
<p class="_fail-text">DevDocs is an API documentation browser which supports the following browsers:</p>
1212
<ul class="_fail-list">
13-
<li>Recent versions of Chrome and Firefox</li>
14-
<li>Safari 5.1+</li>
15-
<li>Opera 12.1+</li>
16-
<li>Internet Explorer 10+</li>
17-
<li>iOS 6+</li>
18-
<li>Android 4.1+</li>
19-
<li>Windows Phone 8+</li>
13+
<li>Recent versions of Firefox, Chrome, or Opera</li>
14+
<li>Safari 9.1+</li>
15+
<li>Edge 16+</li>
16+
<li>iOS 10+</li>
2017
</ul>
2118
<p class="_fail-text">
2219
If you're unable to upgrade, I apologize.

0 commit comments

Comments
 (0)