Lets use a simpler solution
parent
256bf1b6d2
commit
0aebdb345b
|
@ -1616,7 +1616,8 @@ H5P.setFinished = function (contentId, score, maxScore, time) {
|
|||
maxScore: maxScore,
|
||||
opened: toUnix(H5P.opened[contentId]),
|
||||
finished: toUnix(new Date()),
|
||||
time: time
|
||||
time: time,
|
||||
token: H5PIntegration.tokens.result
|
||||
});
|
||||
}
|
||||
};
|
||||
|
@ -1760,7 +1761,8 @@ H5P.createTitle = function (rawTitle, maxLength) {
|
|||
options.data = {
|
||||
data: (data === null ? 0 : data),
|
||||
preload: (preload ? 1 : 0),
|
||||
invalidate: (invalidate ? 1 : 0)
|
||||
invalidate: (invalidate ? 1 : 0),
|
||||
token: H5PIntegration.tokens.contentUserData
|
||||
};
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue