Issue moving experiment online (previously solved)

URL of experiment:

Description of the problem:
My experiment works well locally, but is throwing a reference error win not defined error when running on Pavlovia. This experiment is based on a previous one that only differs in images and instructions (Michelle Greene / patchInformativeness · GitLab), so I’m very confused about why one works but the other does not. Thanks in advance for the advice!

I solved the issue and I’m leaving the solution here in case it’s helpful to others. The previous experiment was written on Psychopy 2022 and I was using a computer with 2021. Updating Psychopy solved the issue. Weird.