DEV: apply coding standards to plugins (#10594)

This commit is contained in:
Joffrey JAFFEUX
2020-09-04 13:51:53 +02:00
committed by GitHub
parent 034a59a69d
commit bf88410126
27 changed files with 269 additions and 277 deletions

View File

@ -3,9 +3,9 @@ import { withPluginApi } from "discourse/lib/plugin-api";
export default {
name: "apply-lazyYT",
initialize() {
withPluginApi("0.1", api => {
withPluginApi("0.1", (api) => {
api.decorateCooked(
$elem => {
($elem) => {
const iframes = $(".lazyYT", $elem);
if (iframes.length === 0) {
return;
@ -21,11 +21,11 @@ export default {
if (postId) {
api.preventCloak(postId);
}
}
},
});
},
{ id: "discourse-lazyyt" }
);
});
}
},
};