diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-08-07 13:26:17 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-08-07 13:26:17 +0300 |
commit | f18b08aea77a6e29e4f3fba61184b54fbd4bb500 (patch) | |
tree | d23e855f8c857cce41ba408ad72964998c8fad1d /app/assets | |
parent | a87166d93124ca8286105a8e9a6b7c885e5d1664 (diff) |
Add reject method to monaco_loader_helper
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/repo/helpers/monaco_loader_helper.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/repo/helpers/monaco_loader_helper.js b/app/assets/javascripts/repo/helpers/monaco_loader_helper.js index d9e29028634..8ee2df5c879 100644 --- a/app/assets/javascripts/repo/helpers/monaco_loader_helper.js +++ b/app/assets/javascripts/repo/helpers/monaco_loader_helper.js @@ -5,12 +5,12 @@ import monacoLoader from '../monaco_loader'; function repoEditorLoader() { Store.monacoLoading = true; - return new Promise((resolve) => { + return new Promise((resolve, reject) => { monacoLoader(['vs/editor/editor.main'], () => { Store.monaco = monaco; Store.monacoLoading = false; resolve(RepoEditor); - }); + }, reject); }); } |