mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
Merge pull request #2441 from cedricbatailler/main
Fix an error in browser-check doc
This commit is contained in:
commit
0d9cfce749
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user