We already have a hook on page change, maybe use that?
<script type="text/discourse-plugin" version="0.2">
api.onPageChange((url, title) => {
Em.run.next(()=>{
$('body').addClass('xyz')
});
});
</script>
We already have a hook on page change, maybe use that?
<script type="text/discourse-plugin" version="0.2">
api.onPageChange((url, title) => {
Em.run.next(()=>{
$('body').addClass('xyz')
});
});
</script>