mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 22:34:04 +08:00
10 lines
223 B
JavaScript
10 lines
223 B
JavaScript
import { getPluginApi } from 'discourse/lib/plugin-api';
|
|
|
|
export default {
|
|
name: "apply-lazyYT",
|
|
initialize() {
|
|
const api = getPluginApi('0.1');
|
|
api.decorateCooked($elem => $('.lazyYT', $elem).lazyYT());
|
|
}
|
|
};
|