mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 12:33:17 +08:00
20 lines
409 B
JavaScript
20 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;
|
|
}
|
|
};
|
|
}
|
|
};
|