debian-mirror-gitlab/app/helpers/u2f_helper.rb
2016-08-24 12:49:21 +05:30

5 lines
126 B
Ruby

module U2fHelper
def inject_u2f_api?
browser.chrome? && browser.version.to_i >= 41 && !browser.device.mobile?
end
end