mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
REFACTOR: Migrate markdown functionality in ES6
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
/* global assetPath */
|
||||
|
||||
const _loaded = {};
|
||||
const _loading = {};
|
||||
|
||||
@ -26,7 +24,7 @@ export default function loadScript(url, opts) {
|
||||
opts = opts || {};
|
||||
|
||||
return new Ember.RSVP.Promise(function(resolve) {
|
||||
url = Discourse.getURL((assetPath && assetPath(url)) || url);
|
||||
url = Discourse.getURL(url);
|
||||
|
||||
// If we already loaded this url
|
||||
if (_loaded[url]) { return resolve(); }
|
||||
|
Reference in New Issue
Block a user