summaryrefslogtreecommitdiff
path: root/vendor/assets/javascripts/u2f.js
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-01-09 13:17:48 -0600
committerMike Greiling <mike@pixelcog.com>2017-01-10 12:30:45 -0600
commite3ff5ff42698cecf17eb9cd59231c16132bb3e79 (patch)
treeed306a0744bb5338d6bf6bc3a53d76edc6b6b8ff /vendor/assets/javascripts/u2f.js
parent707bcbba4baf62b77bde16086828681902669d38 (diff)
downloadgitlab-ce-e3ff5ff42698cecf17eb9cd59231c16132bb3e79.tar.gz
ensire u2f object is accessible in a commonJS environment
Diffstat (limited to 'vendor/assets/javascripts/u2f.js')
-rw-r--r--vendor/assets/javascripts/u2f.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/assets/javascripts/u2f.js b/vendor/assets/javascripts/u2f.js
index e666b136051..a33e5e0ade9 100644
--- a/vendor/assets/javascripts/u2f.js
+++ b/vendor/assets/javascripts/u2f.js
@@ -745,4 +745,6 @@ u2f.getApiVersion = function(callback, opt_timeoutSeconds) {
};
port.postMessage(req);
});
-}; \ No newline at end of file
+};
+
+window.u2f || (window.u2f = u2f);