eternagame / eternagame.org

Website for the Eterna citizen science game
https://eternagame.org
BSD 3-Clause "New" or "Revised" License
19 stars 17 forks source link

Lib.fold crashes in the script editor #378

Open guyguy2001 opened 1 month ago

guyguy2001 commented 1 month ago

Expected Behavior

Woah there are different sections build in here... cool

Lib.fold should work both in the script editor, and in boosters, like how it did in the old site.

Alternatively, it should be documented to not work, and raise an indicative error, such as "Scripts trying to fold sequences don't work anymore" (so that old etc. scripts which were based on Lib.fold would get a clear deprecation error)

Current Behavior

I get the following result in firefox:

Return : document.getElementById(...) is null
Evaluation time : 0 sec

And in chrome:

Return : Cannot read properties of null (reading 'fold')
Evaluation time : 0.001 sec

and no errors in the console

Reproduction Steps

Run https://eternagame.org/scripts/13522515

Environment

Firefox 126.0.1 (64-bit) Chrome 125.0.6422.142 (Official Build) (64-bit) (cohort: Stable) Windows 11 Version 23H2 (Build 22631.3672)

Other information

No response