I'm using the jspsych.js module, and when using it, I look at the console and I'm getting this error: The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
and it takes me to this lines of code:
core.webaudio_context = (typeof window !== 'undefined' && typeof window.AudioContext !== 'undefined') ? new AudioContext() : null;
I don't get where the mistake is.