debian-mirror-gitlab/app/helpers/u2f_helper.rb

6 lines
126 B
Ruby
Raw Normal View History

2016-08-24 12:49:21 +05:30
module U2fHelper
def inject_u2f_api?
browser.chrome? && browser.version.to_i >= 41 && !browser.device.mobile?
end
end