mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
fix .contains -> .includes
This commit is contained in:
parent
0d9cfce749
commit
90130d7f6a
@ -15,7 +15,7 @@
|
|||||||
const trial = {
|
const trial = {
|
||||||
type: jsPsychBrowserCheck,
|
type: jsPsychBrowserCheck,
|
||||||
inclusion_function: (data) => {
|
inclusion_function: (data) => {
|
||||||
return ['chrome', 'firefox'].contains(data.browser);
|
return ['chrome', 'firefox'].includes(data.browser);
|
||||||
},
|
},
|
||||||
exclusion_message: `<p>You must use Chrome or Firefox to complete this experiment.</p>`
|
exclusion_message: `<p>You must use Chrome or Firefox to complete this experiment.</p>`
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user