Skip to content

Commit

Permalink
lint a random file (#3891)
Browse files Browse the repository at this point in the history
  • Loading branch information
osc-bot authored Oct 22, 2024
1 parent d97e040 commit d8af2bf
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions apps/dashboard/config/initializers/browser.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
# frozen_string_literal: true

Browser.modern_rules.clear
Browser.modern_rules.tap do |rules|
# original:
# original:
# rules << -> (b) { b.webkit? }
# rules << -> (b) { b.firefox? && b.version.to_i >= 17 }
# rules << -> (b) { b.ie? && b.version.to_i >= 9 && !b.compatibility_view? }
# rules << -> (b) { b.edge? && !b.compatibility_view? }
# rules << -> (b) { b.opera? && b.version.to_i >= 12 }
# rules << -> (b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 } # rubocop:disable Metrics/LineLength
# rules << -> (b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 }

# for now, explicitly specify chrome and safari versions but allow
# other webkit (i.e. mobile)
rules << -> (b) { b.ie? && b.version.to_i >= 11 && !b.compatibility_view? }
rules << -> (b) { b.chrome? && b.version.to_i >= 34 }
rules << -> (b) { b.safari? && b.version.to_i >= 8 }
rules << -> (b) { b.webkit? && !b.chrome? && !b.safari? }
rules << -> (b) { b.firefox? && b.version.to_i >= 19 }
rules << -> (b) { b.edge? && !b.compatibility_view? }
rules << -> (b) { b.opera? && b.version.to_i >= 12 }
rules << -> (b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 } # rubocop:disable Metrics/LineLength
rules << ->(b) { b.ie? && b.version.to_i >= 11 && !b.compatibility_view? }
rules << ->(b) { b.chrome? && b.version.to_i >= 34 }
rules << ->(b) { b.safari? && b.version.to_i >= 8 }
rules << ->(b) { b.webkit? && !b.chrome? && !b.safari? }
rules << ->(b) { b.firefox? && b.version.to_i >= 19 }
rules << ->(b) { b.edge? && !b.compatibility_view? }
rules << ->(b) { b.opera? && b.version.to_i >= 12 }
rules << ->(b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 }
end

0 comments on commit d8af2bf

Please sign in to comment.