summaryrefslogtreecommitdiff
path: root/app/helpers/u2f_helper.rb
blob: 81bfe5d4eebd656716706141c2fc3d58229f0215 (plain)
1
2
3
4
5
module U2fHelper
  def inject_u2f_api?
    ((browser.chrome? && browser.version.to_i >= 41) || (browser.opera? && browser.version.to_i >= 40)) && !browser.device.mobile?
  end
end