From e250d9b6580f341c40f889ebfadad5b3ca6e0651 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 3 Nov 2017 16:08:52 -0400 Subject: [PATCH] assign u2f to window --- src/scripts/u2f.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/u2f.js b/src/scripts/u2f.js index e2fbce2569..7a36537090 100644 --- a/src/scripts/u2f.js +++ b/src/scripts/u2f.js @@ -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;