Skip to content

Lib.fold crashes in the script editor #378

@guyguy2001

Description

@guyguy2001

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions