"DevDocs being a developer tool, the browser requirements are high" (README)
Unified · Split
| @@ -146,10 +146,8 @@ class App < Sinatra::Application · 145 unmodified lines | |||
| 146 | @browser ||= Browser.new(request.user_agent) | 146 | @browser ||= Browser.new(request.user_agent) |
| 147 | end | 147 | end |
| 148 | 148 | ||
| 149 | UNSUPPORTED_IE_VERSIONS = %w(6 7 8 9).freeze | ||
| 150 | |||
| 151 | def unsupported_browser? | 149 | def unsupported_browser? |
| 152 | browser.ie? && UNSUPPORTED_IE_VERSIONS.include?(browser.version) | 150 | browser.ie? |
| 153 | end | 151 | end |
| 154 | 152 | ||
| 155 | def docs | 153 | def docs |