diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-01-09 13:17:48 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-01-10 12:30:45 -0600 |
commit | e3ff5ff42698cecf17eb9cd59231c16132bb3e79 (patch) | |
tree | ed306a0744bb5338d6bf6bc3a53d76edc6b6b8ff /vendor | |
parent | 707bcbba4baf62b77bde16086828681902669d38 (diff) | |
download | gitlab-ce-e3ff5ff42698cecf17eb9cd59231c16132bb3e79.tar.gz |
ensire u2f object is accessible in a commonJS environment
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/assets/javascripts/u2f.js | 4 |
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); |