Replies: 1 comment 1 reply
-
Hi @amunn, This sounds like a scoping issue but I think we'd need to see the context of where the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a jsPsych experiment which has some browser checking code I wrote. This code works find running the jsPsych code locally or on cognition.run, but when I try to run the same code through a JATOS server it fails.
In the code I define an isBrowser function. (full code is here)
When I run the experiment through JATOS I get the following error:
Uncaught (in promise) TypeError: isBrowser is not a function
Is there something about wrapping the jsPsych code in the jatos wrapper that causes this? If so, how do I fix it?
(As a workaround, I can use the
browser-check
plugin, but I'd like to understand the problem more generally, since it seems to be related to how functions work, not this particular function.)Beta Was this translation helpful? Give feedback.
All reactions