Merge pull request #10023 from tchak/allow-samsung-browser

chore(browser): mark samsung browser as supported browser
This commit is contained in:
Paul Chavard 2024-02-20 22:05:10 +00:00 committed by GitHub
commit 6ef969a7d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View file

@ -6,7 +6,8 @@ class BrowserSupport
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
browser.platform.ios? && browser.platform.version.to_i >= 12,
browser.samsung_browser? && browser.version.to_i >= 12
].any?
end
end

View file

@ -0,0 +1,13 @@
# frozen_string_literal: true
module Maintenance
class SamsungBrowserIsSupportedTask < MaintenanceTasks::Task
def collection
Traitement.where(browser_name: 'Samsung Browser', browser_version: 12..)
end
def process(traitement)
traitement.update_column(:browser_supported, true)
end
end
end