mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
Merge pull request #2826 from ZhaoBin-Li/main
fixed browser-check typo in doc example
This commit is contained in:
commit
281c8e6c69
@ -17,7 +17,9 @@
|
|||||||
inclusion_function: (data) => {
|
inclusion_function: (data) => {
|
||||||
return ['chrome', 'firefox'].includes(data.browser);
|
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];
|
const timeline = [trial];
|
||||||
|
@ -123,7 +123,9 @@ import browserCheck from '@jspsych/plugin-browser-check';
|
|||||||
inclusion_function: (data) => {
|
inclusion_function: (data) => {
|
||||||
return ['chrome', 'firefox'].includes(data.browser);
|
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>`
|
||||||
|
},
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user