mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 19:42:32 -05:00
5f3176dfd4
Previously it was just removed which broke MathJax.
19 lines
409 B
JavaScript
19 lines
409 B
JavaScript
import loadScript from 'discourse/lib/load-script';
|
|
|
|
export default {
|
|
name: 'lab-deprecation',
|
|
|
|
initialize() {
|
|
if (window.$LAB) { return; }
|
|
|
|
window.$LAB = {
|
|
script(path) {
|
|
Ember.warn('$LAB is not included with Discouse anymore. Use `loadScript` instead.');
|
|
|
|
const promise = loadScript(path);
|
|
promise.wait = promise.then;
|
|
return promise;
|
|
}
|
|
};
|
|
}
|
|
};
|