diff --git a/README.md b/README.md index 119c6fe1..eec50904 100644 --- a/README.md +++ b/README.md @@ -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: -1. On the desktop: - * Recent version of Chrome, Firefox, or Opera - * Safari 8+ - * IE / Edge 10+ -2. On mobile: - * iOS 8+ - * Android 4.1+ - * Windows Phone 8+ +* Recent versions of Firefox, Chrome, or Opera +* Safari 9.1+ +* Edge 16+ +* iOS 10+ This allows the code to take advantage of the latest DOM and HTML5 APIs and make developing DevDocs a lot more fun! diff --git a/assets/javascripts/app/app.coffee b/assets/javascripts/app/app.coffee index 979ea353..7b9657cc 100644 --- a/assets/javascripts/app/app.coffee +++ b/assets/javascripts/app/app.coffee @@ -245,7 +245,7 @@ matchMedia: !!window.matchMedia insertAdjacentHTML: !!document.body.insertAdjacentHTML 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 Raven.captureMessage "unsupported/#{key}", level: 'info' @@ -268,9 +268,4 @@ isInvalidLocation: -> @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 diff --git a/assets/javascripts/templates/error_tmpl.coffee b/assets/javascripts/templates/error_tmpl.coffee index 9c19c0a6..37e2b5e4 100644 --- a/assets/javascripts/templates/error_tmpl.coffee +++ b/assets/javascripts/templates/error_tmpl.coffee @@ -56,13 +56,10 @@ app.templates.unsupportedBrowser = """

Your browser is unsupported, sorry.

DevDocs is an API documentation browser which supports the following browsers:

If you're unable to upgrade, I apologize. diff --git a/views/unsupported.erb b/views/unsupported.erb index b64ffc3d..ca90d4d8 100644 --- a/views/unsupported.erb +++ b/views/unsupported.erb @@ -10,13 +10,10 @@

Your browser is unsupported, sorry.

DevDocs is an API documentation browser which supports the following browsers:

If you're unable to upgrade, I apologize.