Merge pull request #2441 from cedricbatailler/main

Fix an error in browser-check doc
This commit is contained in:
Josh de Leeuw 2022-03-11 12:02:31 -05:00 committed by GitHub
commit 0d9cfce749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ As with all simulated plugins, you can override the default (actual) data with f
var trial = {
type: jsPsychBrowserCheck,
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>`
};
@ -149,4 +149,4 @@ As with all simulated plugins, you can override the default (actual) data with f
<iframe src="../../demos/jspsych-browser-check-demo4.html" width="90%;" height="500px;" frameBorder="0"></iframe>
</div>
<a target="_blank" rel="noopener noreferrer" href="../../demos/jspsych-browser-check-demo4.html">Open demo in new tab</a>
<a target="_blank" rel="noopener noreferrer" href="../../demos/jspsych-browser-check-demo4.html">Open demo in new tab</a>