Skip to content

Commit

Permalink
Added extension version and type to record-video
Browse files Browse the repository at this point in the history
  • Loading branch information
Bankminer78 committed Jul 17, 2024
1 parent 300f199 commit 67b857f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/extension-record-video/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,18 @@ class RecordVideoExtension implements JsPsychExtension {

if (!this.currentTrialData.record_video_data) {
this.onUpdateCallback = () => {
resolve(this.currentTrialData);
resolve({
extension_type: "record-video",
extension_version: version,
...this.currentTrialData,
});
};
} else {
resolve(this.currentTrialData);
resolve({
extension_type: "record-video",
extension_version: version,
...this.currentTrialData,
});
}
});
};
Expand Down

0 comments on commit 67b857f

Please sign in to comment.