Merge pull request #2826 from ZhaoBin-Li/main

fixed browser-check typo in doc example
This commit is contained in:
Josh de Leeuw 2022-10-18 16:06:00 -04:00 committed by GitHub
commit 281c8e6c69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -17,7 +17,9 @@
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>`
},
};
const timeline = [trial];

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>`
},
};
```