parent
d4d9f81518
commit
a6656c2e6f
|
@ -188,6 +188,7 @@ H5P.XAPIEvent.prototype.setActor = function () {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var uuid;
|
var uuid;
|
||||||
|
try {
|
||||||
if (localStorage.H5PUserUUID) {
|
if (localStorage.H5PUserUUID) {
|
||||||
uuid = localStorage.H5PUserUUID;
|
uuid = localStorage.H5PUserUUID;
|
||||||
}
|
}
|
||||||
|
@ -195,6 +196,11 @@ H5P.XAPIEvent.prototype.setActor = function () {
|
||||||
uuid = H5P.createUUID();
|
uuid = H5P.createUUID();
|
||||||
localStorage.H5PUserUUID = uuid;
|
localStorage.H5PUserUUID = uuid;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch (err) {
|
||||||
|
// LocalStorage and Cookies are probably disabled. Do not track the user.
|
||||||
|
uuid = 'not-trackable-' + H5P.createUUID();
|
||||||
|
}
|
||||||
this.data.statement.actor = {
|
this.data.statement.actor = {
|
||||||
'account': {
|
'account': {
|
||||||
'name': uuid,
|
'name': uuid,
|
||||||
|
|
Loading…
Reference in New Issue