You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var actor={objectType:"Agent",name:"Testy McTestface",account:{homePage:"http://www.example.com/users",name:"1234567890"}};window.xapiWrapper=Object.create(window.ADL.XAPIWrapper),Object.assign(window.xapiWrapper,{lrs:{actor:JSON.stringify(actor)},getState:function(e,t,n,o,r,a){var s=Cookies.get(n);return a(null,s?{status:200,response:s}:{status:404,response:null})},sendStatement:function(e,t){return console.log("xAPI statement sent:"),console.log(JSON.stringify(e)),t()},sendState:function(e,t,n,o,r,a,s,c){return console.log("xAPI state sent - "+n+":"),console.log(r),Cookies.set(n,r),!0},updateAuth:function(e,t,n){return!0}}),window.ADL.launch=function(e,t,n){return e(null,{actor:actor,endpoint:"http://launch-server.example.com"},window.xapiWrapper)},window.ADL=Object.freeze(window.ADL);