mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-09 09:40:07 +01:00
assign u2f to window
This commit is contained in:
parent
6d89cc91f7
commit
e250d9b658
@ -1,11 +1,11 @@
|
|||||||
function U2f(webVaultUrl, successCallback, errorCallback, infoCallback) {
|
window.U2f = U2f = function U2f(webVaultUrl, successCallback, errorCallback, infoCallback) {
|
||||||
this.success = successCallback;
|
this.success = successCallback;
|
||||||
this.error = errorCallback;
|
this.error = errorCallback;
|
||||||
this.info = infoCallback;
|
this.info = infoCallback;
|
||||||
this.iframe = null;
|
this.iframe = null;
|
||||||
this.connectorLink = document.createElement('a');
|
this.connectorLink = document.createElement('a');
|
||||||
this.webVaultUrl = webVaultUrl && webVaultUrl !== '' ? webVaultUrl : 'https://vault.bitwarden.com';
|
this.webVaultUrl = webVaultUrl && webVaultUrl !== '' ? webVaultUrl : 'https://vault.bitwarden.com';
|
||||||
}
|
};
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
var thisU2f = null;
|
var thisU2f = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user