uwu / shelter

an attempt to prepare for the worst
https://shelter.uwu.network/
Creative Commons Zero v1.0 Universal
365 stars 12 forks source link

Error in local plugin placeholder text #15

Closed manutiedra closed 10 months ago

manutiedra commented 10 months ago

When adding a local plugin, the placeholder text for the code field says:

onload()

but it should say:

onLoad()

BTW, I have tried to run the plugin of the docs as a local plugin but it gives me the error:

plugin test1 errored while loading and will be unloaded: SyntaxError: Unexpected token 'const'

Can you please paste here the code for the show-username plugin that works as a local plugin?

Thank you and keep up your good work!

yellowsink commented 10 months ago

The getting started guide is intended to be used with Lune and will not work as a local plugin. I will fix the placeholder text.

And you can use the compiled source of the real show-username plugin from https://yellowsink.github.io/shelter-plugins/show-username/plugin.js