Skip to content

Commit

Permalink
add: completion event on content consumption (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
ichintanjoshi authored Sep 13, 2024
1 parent 37a8519 commit 1cbef60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion h5pxblock/static/js/src/h5pxblock.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ function H5PPlayerXBlock(runtime, element, args) {

let isCompleted =
statement.verb.display["en-US"] === "answered" ||
statement.verb.display["en-US"] === "completed";
statement.verb.display["en-US"] === "completed" ||
statement.verb.display["en-US"] === "consumed";
let isChild =
statement.context &&
statement.context.contextActivities &&
Expand Down

0 comments on commit 1cbef60

Please sign in to comment.