Canapin
(Coin-coin le Canapin)
24
There’s an error on this part. I suppose Discourse changed some methods.
Discourse.appEvents.on('composer:opened', () => {
TypeError: Cannot read properties of undefined (reading 'on')
But I don’t know Discourse development enough to fix this error by myself. If someone has a clue…
3 Likes
keegan
(Keegan George)
25
@Canapin
Instead of Discourse.appEvents.on
, give this a try:
const appEvents = api.container.lookup("service:app-events");
appEvents.on('composer:opened', () => {
6 Likes
darkpixlz
(darkpixlz)
26
Sadly this doesn’t work either.
No “Your site is broken” banner though
2 Likes
keegan
(Keegan George)
27
Is your code wrapped in the plugin script tags? It should have access to api
inside the script tags.
<script type="text/discourse-plugin" version="1.4.0">
...
</script>
2 Likes
darkpixlz
(darkpixlz)
29
Having a hard time catching it, but it’s working!
3 Likes
danielabc
(Daniela)
31
my ghost doesn’t appear, a broken image appears
1 Like
Canapin
(Coin-coin le Canapin)
32
Can you make a screenshot of your theme/theme component on which you added the Halloween code? This screen, but from your forum:
Can you also send a screenshot of your head section in this theme/theme component, so I can see the code?
2 Likes