Skip to content

Commit

Permalink
Edited ExtensionManager.ts to handle multiple extension types and ver…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
Bankminer78 committed Jul 8, 2024
1 parent fadded2 commit 1f6faf3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/jspsych/src/ExtensionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ export class ExtensionManager {
)
);

const extensionInfo = trialExtensionsConfiguration.length
? {
extension_type: results.map((result) => result.extension_type),
extension_version: results.map((result) => result.extension_version),
}
: {};

results.push(extensionInfo);

return Object.assign({}, ...results);
}
}

0 comments on commit 1f6faf3

Please sign in to comment.