fixed browser-check typo in doc example

This commit is contained in:
Zhaobin Li 2022-10-18 11:24:51 -04:00
parent 7e62982fb8
commit c75c80b7e7

View File

@ -123,7 +123,9 @@ import browserCheck from '@jspsych/plugin-browser-check';
inclusion_function: (data) => {
return ['chrome', 'firefox'].includes(data.browser);
},
exclusion_message: `<p>You must use Chrome or Firefox to complete this experiment.</p>`
exclusion_message: (data) => {
return `<p>You must use Chrome or Firefox to complete this experiment.</p>`
},
};
```