Skip to content

Commit

Permalink
fix(exports): scorm export always works with interactive book (#1715)
Browse files Browse the repository at this point in the history
  • Loading branch information
sr258 committed Jul 22, 2021
1 parent 296155d commit 84ae568
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scorm-client/h5p-adaptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ window.onunload = function () {
};

var onCompleted = function (result) {
if (!result.score) {
return;
}

var masteryScore;
if (scorm.version == '2004') {
masteryScore = scorm.get('cmi.scaled_passing_score');
Expand Down

0 comments on commit 84ae568

Please sign in to comment.