trivantis-cookie.js fix

I'm not sure if I've already posted this and it got lost or if I thought about it but never posted it.

Anyhow there a bug in trivantis-cookie.js that affects SCORM titles that store suspend_data and the names of pages in the titles include characters that are not web safe. You get this error displayed "Some of the persistent data was not able to be stored".

The bug has been around at least since version 11 and it occurs because there's a comparison made between encoded and decoded text (instead of both being decoded).

In version 17, at line 878 change

if( chkdata.length undefined

}

}

As far as my testing goes, it doesn't break anything.

Discussion (1)

I've brought the issue with development and they'll look at implementing a fix. Thanks!

Discussions have been disabled for this post