瀏覽代碼

Remove support for Internet Explorer

"DevDocs being a developer tool, the browser requirements are high" (README)
Simon Legner 4 年之前
父節點
當前提交
5ca0a8172d
共有 1 個文件被更改,包括 1 次插入3 次删除
  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