summaryrefslogtreecommitdiff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-02-20 02:19:58 -0600
committerMike Greiling <mike@pixelcog.com>2018-02-21 00:06:14 -0600
commit2d01877631979ed809871053cce450a5af31750b (patch)
tree2483c76a5988e4598791b733a0405e0a87c79a83 /app/assets/javascripts
parent3b359ffe57e9ee632b6ebae5edc3de1230b06719 (diff)
downloadgitlab-ce-2d01877631979ed809871053cce450a5af31750b.tar.gz
migrate omniauth_callbacks:* to static bundle
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/dispatcher.js5
-rw-r--r--app/assets/javascripts/pages/omniauth_callbacks/index.js4
2 files changed, 1 insertions, 8 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js
index cba4509b20b..0e7645636f7 100644
--- a/app/assets/javascripts/dispatcher.js
+++ b/app/assets/javascripts/dispatcher.js
@@ -277,11 +277,6 @@ var Dispatcher;
break;
}
switch (path[0]) {
- case 'omniauth_callbacks':
- import('./pages/omniauth_callbacks')
- .then(callDefault)
- .catch(fail);
- break;
case 'admin':
import('./pages/admin')
.then(callDefault)
diff --git a/app/assets/javascripts/pages/omniauth_callbacks/index.js b/app/assets/javascripts/pages/omniauth_callbacks/index.js
index 54f4e56359a..c2c069d1ca8 100644
--- a/app/assets/javascripts/pages/omniauth_callbacks/index.js
+++ b/app/assets/javascripts/pages/omniauth_callbacks/index.js
@@ -1,5 +1,3 @@
import initU2F from '../../shared/sessions/u2f';
-export default () => {
- initU2F();
-};
+document.addEventListener('DOMContentLoaded', initU2F);