mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 17:15:47 +08:00
14 lines
278 B
Plaintext
14 lines
278 B
Plaintext
|
/**
|
||
|
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();
|
||
|
});
|
||
|
}
|
||
|
};
|