• 98 Posts
  • 176 Comments
Joined 3 months ago
cake
Cake day: July 15th, 2024

help-circle



















  • Okay, so you don’t need to put the code into the HTML as well; you can remove that.

    The error box tells you there’s an error with [output]. Which you don’t need at all, so you can remove that from the HTML panel and that error will go away.

    The wheelOptions object in the perchance panel ends immediately (with no items or properties or settings)… because the next line lineWidth=10 is not indented. So it just starts its own new list called lineWidth=10. That’s not what you want.

    Indent it, and now that is a property of wheelOptions, and the rest of the items below it will be as well. So when wheelOptions is sent into that makeWheel() function it will use those settings to build the wheel.








  • @perchance@lemmy.world Yeeeeeeeeeeah… so that wasn’t actually working. It does work when direct from a script. Doesn’t work when from an event, because it’s no longer processing the script tag itself. 🤦

    I’ve resorted to requiring the plugin user to tell me if the HTML should be escaped or not. But obviously… that suuuuuucks.

    Really hoping for some way of knowing if a code block is being processed or not. Or a way of setting my own “evaluateItem” so I can override the processing. Or a way of telling perchance not to forcibly evaluate an object.

    This issue is driving me crazy every time I find a new edge case or some hacky workaround turns out not to be working after all.