Pavlovia- TypeError: win is undefined

I belatedly realized that something like this is probably the underlying issue: TypeError: undefined is not an object (evaluating 'win._psychoJS') - #2 by jonathan.kominsky