this post was submitted on 03 Oct 2024
3 points (100.0% liked)

Casual Perchance

95 readers
1 users here now

Casual Perchance

A nonspecific casual place for anything Perchance, including generator outputs, memes, prompts, casual discussion, advertising your generator, and anything else you wouldn't post in the more technical Perchance Forum.

This is where to post Community Events.

Resources:


Rules:

founded 9 months ago
MODERATORS
 

I'm briefly back again! ๐Ÿ˜ƒ I want to post this to highlight some sort of event happening with my generator hub page, as well as how I was able to fix it.

So, pretty recently, my Generator Manager was suddenly entirely broken for a few days. The DevTools console threw these errors, and I was confused for a moment thinking it was me constantly editing the list code that it breaks the entire functionality of the generator hub page.

That is, until I recently quickly hatched a simple solution to fix it before going to update the generator statistics for this week. I replaced the use of let i to var i in some of the code of the HTML panel, and it worked fine again! (I've just learned the difference between them btw)

The reason it was left broken and wasn't fixed immediately is that I just haven't had time to fix it due to, as usual, the post-recovery business. (Although I might plan to go back to Perchance slowly and regenerate my spirits to release some new projects and stuff here on this community! ๐Ÿ˜„)

you are viewing a single comment's thread
view the rest of the comments
[โ€“] BluePower 1 points 1 month ago* (last edited 1 month ago)

Turns out this also happens in one of my oldest generators, Power Hangman, and not just in the Generator Manager. Someone in the comments of that page reported this quite recently, so I just fixed that generator to use the var i solution instead of let i. I should probably create a post on the Perchance community about this so everyone can have a catch.

In short, multiple let declarations on the script tag in the HTML would now cause an error in the generator. I haven't encountered these errors before, so if you happen to experience that same error as well, let me know!