4b33c4c6d1
1. Only on supported Chrome versions 2. Mainly, this lets us simplify the javascript-based U2F check to `window.u2f`, where `window.u2f` can either be loaded from the GitLab server (for Chrome) or from the Firefox extension. 3. This is a better way to provide browser detection for U2F.
5 lines
126 B
Ruby
5 lines
126 B
Ruby
module U2fHelper
|
|
def inject_u2f_api?
|
|
browser.chrome? && browser.version.to_i >= 41 && !browser.device.mobile?
|
|
end
|
|
end
|