mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 16:48:12 +00:00
forgot to add try ... catch back into the code
This commit is contained in:
parent
2c5a45e90d
commit
b038c66370
@ -123,7 +123,7 @@ jsPsych.plugins['virtual-chinrest'] = (function() {
|
||||
}
|
||||
|
||||
plugin.trial = function(display_element, trial) {
|
||||
/*try {*/
|
||||
try {
|
||||
if ( !( trial.blindspot_reps > 0 ) && ( (trial.resize_units == "deg" ) || (trial.resize_units == "degrees" ) ) ) {
|
||||
throw Error("Blindspot repetitions set to 0, so resizing to degrees of visual angle is not possible!")
|
||||
} else {
|
||||
@ -296,9 +296,9 @@ jsPsych.plugins['virtual-chinrest'] = (function() {
|
||||
jsPsych.pluginAPI.cancelAllKeyboardResponses();
|
||||
})
|
||||
}
|
||||
/*} catch (e) {
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}*/
|
||||
}
|
||||
};
|
||||
|
||||
(function ( distanceSetup, $ ) { // jQuery short-hand for $(document).ready(function() { ... });
|
||||
|
Loading…
Reference in New Issue
Block a user