Explorar o código

Remove support for Internet Explorer

"DevDocs being a developer tool, the browser requirements are high" (README)
Simon Legner %!s(int64=4) %!d(string=hai) anos
pai
achega
5ca0a8172d
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      lib/app.rb

+ 1 - 3
lib/app.rb

@@ -146,10 +146,8 @@ class App < Sinatra::Application
       @browser ||= Browser.new(request.user_agent)
     end
 
-    UNSUPPORTED_IE_VERSIONS = %w(6 7 8 9).freeze
-
     def unsupported_browser?
-      browser.ie? && UNSUPPORTED_IE_VERSIONS.include?(browser.version)
+      browser.ie?
     end
 
     def docs