mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Log errors when trying to load a markdown-it-bunlde.js.
This commit is contained in:
@@ -26,7 +26,8 @@ export function cook(text, options) {
|
||||
export function cookAsync(text, options) {
|
||||
if (Discourse.MarkdownItURL) {
|
||||
return loadScript(Discourse.MarkdownItURL)
|
||||
.then(()=>cook(text, options));
|
||||
.then(()=>cook(text, options))
|
||||
.catch(e => Ember.Logger.error(e));
|
||||
} else {
|
||||
return Ember.RSVP.Promise.resolve(cook(text));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user