Swapped static datalist with a dynamic one due to memory issues. This stemmed from too many possible fillable fields along with too many possible values, increasing DOM size and therefore increasing memory usage. DND5e runs fine statically, but other systems like PF2e has too many key-value pairs within the actor object to viably work.
Modified
myFlattenObject
call to pass in string instead of allocating space for a map on every call stack.Small change specifically in
myFlattenObject
call for pathfinder 2e only.Allowed arrays to be added to search due to other systems using an actor.system style.
Removing
stack.delete
due to problems stated with pf2e here: https://github.com/farling42/fvtt-pdf-pager/issues/98#issuecomment-2168679500Swapped static datalist with a dynamic one due to memory issues. This stemmed from too many possible fillable fields along with too many possible values, increasing DOM size and therefore increasing memory usage. DND5e runs fine statically, but other systems like PF2e has too many key-value pairs within the actor object to viably work.
Feel free to enact any changes.