Get contentId from the right place in the statement

semantics-font
Svein-Tore Griff With 2015-03-22 13:27:40 +01:00
parent 44e8cba365
commit c4e488f9c8
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ H5P.xAPICompletedListener = function(event) {
if (statement.verb.id === 'http://adlnet.gov/expapi/verbs/completed') {
var score = statement.result.score.raw;
var maxScore = statement.result.score.max;
var contentId = statement.object.extensions['http://h5p.org/x-api/h5p-local-content-id'];
var contentId = statement.object.definition.extensions['http://h5p.org/x-api/h5p-local-content-id'];
H5P.setFinished(contentId, score, maxScore);
}
}