Commit f18b08ae authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Add reject method to monaco_loader_helper

parent a87166d9
...@@ -5,12 +5,12 @@ import monacoLoader from '../monaco_loader'; ...@@ -5,12 +5,12 @@ import monacoLoader from '../monaco_loader';
function repoEditorLoader() { function repoEditorLoader() {
Store.monacoLoading = true; Store.monacoLoading = true;
return new Promise((resolve) => { return new Promise((resolve, reject) => {
monacoLoader(['vs/editor/editor.main'], () => { monacoLoader(['vs/editor/editor.main'], () => {
Store.monaco = monaco; Store.monaco = monaco;
Store.monacoLoading = false; Store.monacoLoading = false;
resolve(RepoEditor); resolve(RepoEditor);
}); }, reject);
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment