Skip to content

Commit 281c8e6

Browse files
authored
Merge pull request #2826 from ZhaoBin-Li/main
fixed browser-check typo in doc example
2 parents 7e62982 + 08ff122 commit 281c8e6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/demos/jspsych-browser-check-demo2.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
inclusion_function: (data) => {
1818
return ['chrome', 'firefox'].includes(data.browser);
1919
},
20-
exclusion_message: `<p>You must use Chrome or Firefox to complete this experiment.</p>`
20+
exclusion_message: (data) => {
21+
return `<p>You must use Chrome or Firefox to complete this experiment.</p>`
22+
},
2123
};
2224

2325
const timeline = [trial];

docs/plugins/browser-check.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ import browserCheck from '@jspsych/plugin-browser-check';
123123
inclusion_function: (data) => {
124124
return ['chrome', 'firefox'].includes(data.browser);
125125
},
126-
exclusion_message: `<p>You must use Chrome or Firefox to complete this experiment.</p>`
126+
exclusion_message: (data) => {
127+
return `<p>You must use Chrome or Firefox to complete this experiment.</p>`
128+
},
127129
};
128130
```
129131

0 commit comments

Comments
 (0)