mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
add return statements for rejection paths
This commit is contained in:
parent
213f6ae7dc
commit
b0569323e8
@ -93,9 +93,8 @@ class InitializeCameraPlugin implements JsPsychPlugin<Info> {
|
|||||||
try {
|
try {
|
||||||
await this.askForPermission(trial);
|
await this.askForPermission(trial);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// TODO: does not properly display rejection message
|
|
||||||
this.rejectPermission(trial);
|
this.rejectPermission(trial);
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showCameraSelection(display_element, trial);
|
this.showCameraSelection(display_element, trial);
|
||||||
|
@ -69,7 +69,7 @@ class InitializeMicrophonePlugin implements JsPsychPlugin<Info> {
|
|||||||
await this.askForPermission();
|
await this.askForPermission();
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
this.rejectPermission(trial);
|
this.rejectPermission(trial);
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showMicrophoneSelection(display_element, trial);
|
this.showMicrophoneSelection(display_element, trial);
|
||||||
|
Loading…
Reference in New Issue
Block a user