Docs seem a bit outdated in this part… (also api.modifyClass
complains about pluginId missing). How can I run a script when about-page
is loaded? This one doesn’t seem to work (no errors though). I had mixed results with some other components. Thanks.
<script type="text/discourse-plugin" version="0.11.1">
api.modifyClass("component:about-page", {
pluginId: 'discourse-about-theme',
didInsertElement() {
this._super(...arguments);
console.log("Welcome to the about page!");
}
});
</script>