Skip to content

Commit 6774801

Browse files
committed
fix(core): possibilité d'ajouter un commentaire dans l'intégration SCORM
1 parent 8311498 commit 6774801

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

app/js/core/messages/helpers/plugins/scorm.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export function sendChatbotData(chatbot) {
1111
const scormSuccess = dynamicVariables["scormSuccess"];
1212
const success = typeof scormSuccess === "boolean" ? scormSuccess : undefined;
1313

14+
// Enregistrement d'un éventuel commentaire
15+
const comment = dynamicVariables["scormComment"] || "";
16+
1417
// Enregistrement de l'historique des interactions avec le chatbot
1518
const actionsHistory = Array.isArray(actions) ? actions.join("|") : "";
1619

@@ -20,6 +23,7 @@ export function sendChatbotData(chatbot) {
2023
score,
2124
scoreMax,
2225
success,
26+
comment,
2327
actionsHistory,
2428
};
2529
window.parent.postMessage(message, "*");

app/script.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/script.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)