Update browser requirements

pull/885/merge
Thibaut Courouble 6 years ago
parent 01bc31859b
commit 847cfbb682

@ -64,14 +64,10 @@ Another driving factor is performance and the fact that everything happens in th
DevDocs being a developer tool, the browser requirements are high: DevDocs being a developer tool, the browser requirements are high:
1. On the desktop: * Recent versions of Firefox, Chrome, or Opera
* Recent version of Chrome, Firefox, or Opera * Safari 9.1+
* Safari 8+ * Edge 16+
* IE / Edge 10+ * iOS 10+
2. On mobile:
* iOS 8+
* Android 4.1+
* Windows Phone 8+
This allows the code to take advantage of the latest DOM and HTML5 APIs and make developing DevDocs a lot more fun! This allows the code to take advantage of the latest DOM and HTML5 APIs and make developing DevDocs a lot more fun!

@ -245,7 +245,7 @@
matchMedia: !!window.matchMedia matchMedia: !!window.matchMedia
insertAdjacentHTML: !!document.body.insertAdjacentHTML insertAdjacentHTML: !!document.body.insertAdjacentHTML
defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false defaultPrevented: document.createEvent('CustomEvent').defaultPrevented is false
cssGradients: supportsCssGradients() cssVariables: CSS.supports and CSS.supports('--t:0')
for key, value of features when not value for key, value of features when not value
Raven.captureMessage "unsupported/#{key}", level: 'info' Raven.captureMessage "unsupported/#{key}", level: 'info'
@ -268,9 +268,4 @@
isInvalidLocation: -> isInvalidLocation: ->
@config.env is 'production' and location.host.indexOf(app.config.production_host) isnt 0 @config.env is 'production' and location.host.indexOf(app.config.production_host) isnt 0
supportsCssGradients = ->
el = document.createElement('div')
el.style.cssText = "background-image: -webkit-linear-gradient(top, #000, #fff); background-image: linear-gradient(to top, #000, #fff);"
el.style.backgroundImage.indexOf('gradient') >= 0
$.extend app, Events $.extend app, Events

@ -56,13 +56,10 @@ app.templates.unsupportedBrowser = """
<h1 class="_fail-title">Your browser is unsupported, sorry.</h1> <h1 class="_fail-title">Your browser is unsupported, sorry.</h1>
<p class="_fail-text">DevDocs is an API documentation browser which supports the following browsers: <p class="_fail-text">DevDocs is an API documentation browser which supports the following browsers:
<ul class="_fail-list"> <ul class="_fail-list">
<li>Recent versions of Chrome and Firefox <li>Recent versions of Firefox, Chrome, or Opera
<li>Safari 5.1+ <li>Safari 9.1+
<li>Opera 12.1+ <li>Edge 16+
<li>Internet Explorer 10+ <li>iOS 10+
<li>iOS 6+
<li>Android 4.1+
<li>Windows Phone 8+
</ul> </ul>
<p class="_fail-text"> <p class="_fail-text">
If you're unable to upgrade, I apologize. If you're unable to upgrade, I apologize.

@ -10,13 +10,10 @@
<h1 class="_fail-title">Your browser is unsupported, sorry.</h1> <h1 class="_fail-title">Your browser is unsupported, sorry.</h1>
<p class="_fail-text">DevDocs is an API documentation browser which supports the following browsers:</p> <p class="_fail-text">DevDocs is an API documentation browser which supports the following browsers:</p>
<ul class="_fail-list"> <ul class="_fail-list">
<li>Recent versions of Chrome and Firefox</li> <li>Recent versions of Firefox, Chrome, or Opera</li>
<li>Safari 5.1+</li> <li>Safari 9.1+</li>
<li>Opera 12.1+</li> <li>Edge 16+</li>
<li>Internet Explorer 10+</li> <li>iOS 10+</li>
<li>iOS 6+</li>
<li>Android 4.1+</li>
<li>Windows Phone 8+</li>
</ul> </ul>
<p class="_fail-text"> <p class="_fail-text">
If you're unable to upgrade, I apologize. If you're unable to upgrade, I apologize.

Loading…
Cancel
Save