mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-23 14:02:33 -05:00
14 lines
278 B
Text
14 lines
278 B
Text
|
/**
|
||
|
Apply lazyYT when the app boots
|
||
|
**/
|
||
|
import { decorateCooked } from 'discourse/lib/plugin-api';
|
||
|
|
||
|
export default {
|
||
|
name: "apply-lazyYT",
|
||
|
initialize: function(container) {
|
||
|
decorateCooked(container, function($elem) {
|
||
|
$('.lazyYT', $elem).lazyYT();
|
||
|
});
|
||
|
}
|
||
|
};
|