Window.Jatos no longer working for query parameter check
Hi all,
We're currently testing JATOS v3.9.8 rollout (in combination with OpenSesame 4.1.6), and noticed that the usual code for picking up query parameters is no longer working, e.g:
E.g. if (window.jatos && jatos.urlQueryParameters.SONA_ID) {
console.log('Sona information is available')
var sona_participant_id = jatos.urlQueryParameters.SONA_ID
} else {
console.log('Sona information is not available (setting value to -1)')
var sona_participant_id = -1
}
Specifically, window.jatos now returns -1, which obviously breaks the logic. I think I understand the reasoning from No data received on JATOS since update (on mindprobe) — Forum, and either window.jatos = jatos or checking for window.jatos_uuid instead could be a future solution. .
However rolling out with this change would impact many running experiments that would all need to be updated to prevent them from breaking. Has anyone else encountered this issue, and if so, found a good workaround?
Kind regards,
Kerwin