Merge pull request #9600 from tchak/update-browsers

chore(browser): show browser outdated message to more (very) old browsers
This commit is contained in:
Paul Chavard 2023-10-18 08:03:44 +00:00 committed by GitHub
commit 563c47c88c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,12 @@
class BrowserSupport
def self.supported?(browser)
[
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
browser.chrome? && browser.version.to_i >= 79 && !browser.platform.ios?,
browser.edge? && browser.version.to_i >= 79 && !browser.compatibility_view?,
browser.firefox? && browser.version.to_i >= 67 && !browser.platform.ios?,
browser.opera? && browser.version.to_i >= 50,
browser.safari? && browser.version.to_i >= 12,
browser.platform.ios? && browser.platform.version.to_i >= 12
].any?
end
end