mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
REFACTOR: Remove Discourse.Ajax
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { ajax } from 'discourse/lib/ajax';
|
||||
const _loaded = {};
|
||||
const _loading = {};
|
||||
|
||||
@ -58,7 +59,7 @@ export default function loadScript(url, opts) {
|
||||
if (opts.scriptTag) {
|
||||
loadWithTag(cdnUrl, cb);
|
||||
} else {
|
||||
Discourse.ajax({url: cdnUrl, dataType: "script", cache: true}).then(cb);
|
||||
ajax({url: cdnUrl, dataType: "script", cache: true}).then(cb);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user