Levels skipping in FireFox

Have created a game

with scenes between levels that allow the user to repeat a level or move to the next one.
It works fine Edge, Chrome and Brave. But in firefox the first repeat or next level screen works, but after that it skips all these scenes and just jumps to the next level.

Any ideas please?