parent
3278535a04
commit
9b0d77a721
|
@ -1637,7 +1637,8 @@ H5P.shuffleArray = function (array) {
|
||||||
* Reported time consumption/usage
|
* Reported time consumption/usage
|
||||||
*/
|
*/
|
||||||
H5P.setFinished = function (contentId, score, maxScore, time) {
|
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.
|
* Return unix timestamp for the given JS Date.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue