assign u2f to window

This commit is contained in:
Kyle Spearrin 2017-11-03 16:08:52 -04:00
parent 6d89cc91f7
commit e250d9b658
1 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
function U2f(webVaultUrl, successCallback, errorCallback, infoCallback) {
window.U2f = U2f = function U2f(webVaultUrl, successCallback, errorCallback, infoCallback) {
this.success = successCallback;
this.error = errorCallback;
this.info = infoCallback;
this.iframe = null;
this.connectorLink = document.createElement('a');
this.webVaultUrl = webVaultUrl && webVaultUrl !== '' ? webVaultUrl : 'https://vault.bitwarden.com';
}
};
(function () {
var thisU2f = null;