fix .contains -> .includes

This commit is contained in:
Josh de Leeuw 2022-03-11 12:03:46 -05:00
parent 0d9cfce749
commit 90130d7f6a

View File

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