Lets use a simpler solution

pull/17/head
Frode Petterson 2016-02-22 11:58:25 +01:00
parent 256bf1b6d2
commit 0aebdb345b
1 changed files with 4 additions and 2 deletions

View File

@ -1616,7 +1616,8 @@ H5P.setFinished = function (contentId, score, maxScore, time) {
maxScore: maxScore, maxScore: maxScore,
opened: toUnix(H5P.opened[contentId]), opened: toUnix(H5P.opened[contentId]),
finished: toUnix(new Date()), finished: toUnix(new Date()),
time: time time: time,
token: H5PIntegration.tokens.result
}); });
} }
}; };
@ -1760,7 +1761,8 @@ H5P.createTitle = function (rawTitle, maxLength) {
options.data = { options.data = {
data: (data === null ? 0 : data), data: (data === null ? 0 : data),
preload: (preload ? 1 : 0), preload: (preload ? 1 : 0),
invalidate: (invalidate ? 1 : 0) invalidate: (invalidate ? 1 : 0),
token: H5PIntegration.tokens.contentUserData
}; };
} }
else { else {