HFP-15474 Fix xAPI errors when previewing content
parent
96694e4c70
commit
b43051c785
|
@ -239,7 +239,7 @@ H5P.XAPIEvent.prototype.getScore = function () {
|
||||||
*/
|
*/
|
||||||
H5P.XAPIEvent.prototype.getContentXAPIId = function (instance) {
|
H5P.XAPIEvent.prototype.getContentXAPIId = function (instance) {
|
||||||
var xAPIId;
|
var xAPIId;
|
||||||
if (instance.contentId && H5PIntegration && H5PIntegration.contents) {
|
if (instance.contentId && H5PIntegration && H5PIntegration.contents && H5PIntegration.contents['cid-' + instance.contentId]) {
|
||||||
xAPIId = H5PIntegration.contents['cid-' + instance.contentId].url;
|
xAPIId = H5PIntegration.contents['cid-' + instance.contentId].url;
|
||||||
if (instance.subContentId) {
|
if (instance.subContentId) {
|
||||||
xAPIId += '?subContentId=' + instance.subContentId;
|
xAPIId += '?subContentId=' + instance.subContentId;
|
||||||
|
|
Loading…
Reference in New Issue