diff --git a/js/h5p.js b/js/h5p.js index 77f9f0e..ebc7870 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -1637,7 +1637,8 @@ H5P.shuffleArray = function (array) { * Reported time consumption/usage */ H5P.setFinished = function (contentId, score, maxScore, time) { - if (typeof score === 'number' && H5PIntegration.postUserStatistics === true) { + var validScore = typeof score === 'number' || score instanceof Number; + if (validScore && H5PIntegration.postUserStatistics === true) { /** * Return unix timestamp for the given JS Date. *