Hi everyone,
I am trying to prevent participants from running my Inquisit experiment on mobile devices (e.g., smartphones running Android or iOS). I initially tried the following code:
<expt>
/onexptbegin = [
if (computer.os = "ios") script.abort(true);]
</expt>
However, I get the error message: 'computer.os' The expression attempts to set the value of a read-only property.
What would be the correct way to check the operating system or device type and terminate the experiment if it's running on a mobile device? I only want participants to do the script on a regular computer.
Thanks in advance for your help!