зеркало из https://github.com/github/u2f-api.git
only load polyfill in Chrome
This commit is contained in:
Родитель
c2b5b16ec9
Коммит
36775a1969
|
@ -10,10 +10,11 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
if (!('u2f' in window) && 'chrome' in window && chrome.runtime) {
|
||||
/** Namespace for the U2F api.
|
||||
* @type {Object}
|
||||
*/
|
||||
var u2f = u2f || {};
|
||||
var u2f = {};
|
||||
|
||||
/**
|
||||
* The U2F extension id
|
||||
|
@ -296,3 +297,4 @@ u2f.register = function(registerRequests, signRequests,
|
|||
port.postMessage(req);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче