44c64669e9
This reverts commit5d572727b5
, reversing changes made to43be4482ee
.
13 lines
517 B
Ruby
13 lines
517 B
Ruby
class BrowserSupport
|
|
def self.supported?(browser)
|
|
# See .browserslistrc
|
|
[
|
|
browser.chrome? && browser.version.to_i >= 50 && !browser.platform.ios?,
|
|
browser.edge? && browser.version.to_i >= 14 && !browser.compatibility_view?,
|
|
browser.firefox? && browser.version.to_i >= 50 && !browser.platform.ios?,
|
|
browser.opera? && browser.version.to_i >= 40,
|
|
browser.safari? && browser.version.to_i >= 8,
|
|
browser.platform.ios? && browser.platform.version.to_i >= 8
|
|
].any?
|
|
end
|
|
end
|