discourse/plugins/lazyYT/assets/javascripts/initializers/lazyYT.js.es6

10 lines
223 B
Text
Raw Normal View History

import { getPluginApi } from 'discourse/lib/plugin-api';
2014-07-21 22:39:32 -04:00
export default {
name: "apply-lazyYT",
initialize() {
const api = getPluginApi('0.1');
api.decorateCooked($elem => $('.lazyYT', $elem).lazyYT());
2014-07-21 22:39:32 -04:00
}
};