debian-mirror-gitlab/app/assets/javascripts/u2f/util.js.coffee.erb
2016-06-16 23:09:34 +05:30

15 lines
302 B
Text

# Helper class for U2F (universal 2nd factor) device registration and authentication.
class @U2FUtil
@isU2FSupported: ->
if @testMode
true
else
gon.u2f.browser_supports_u2f
@enableTestMode: ->
@testMode = true
<% if Rails.env.test? %>
U2FUtil.enableTestMode();
<% end %>