瀏覽代碼

Don't check for firefox, only check for u2f browser API

Tii 6 年之前
父節點
當前提交
40061ff6af
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      data/web/js/u2f-api.js

+ 1 - 2
data/web/js/u2f-api.js

@@ -20,10 +20,9 @@
      * Modification:
      * Only continue load this library if window.u2f is not already supplied by the browser.
      */
-    var isFirefox = navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Gecko/') !== -1;
     var browserImplementsU2f = !!((typeof root.u2f !== 'undefined') && root.u2f.register);
 
-    if (isFirefox && browserImplementsU2f) {
+    if (browserImplementsU2f) {
         root.u2f.isSupported = true;
         return;
     }