Now that’s the right attitude!
I can only guess that it’s because you were running it on localhost and not in an environment inside another environment (game inside itch.io) that tries to snatch each other’s resources for themselves.
Either way, I do like your implementation of the impromptu special object!