Forum Discussion
AntoninEtienne
6 years agoCommunity Member
Javascript problem due to the update ?
Hi,
I use a javascript code to do a "mute" tricks in my articulate courses.
After the update, this option doesn't work anymore. I can't mute the sound anymore...
It's because of the update ? ...
JimmiThøgersen
6 years agoCommunity Member
Just to explain that bit of code, it checks if there's a global DS variable (added in update 36). If it's there, it uses that to get to appState. If there's no DS, it assumes it's running in an older version of Storyline, and uses the require function instead (removed in update 36).
As mentioned in the other thread, that DS variable may disappear again in update 37 - or at any time after that. By definition, it's not future proof, since it uses internal undocumented features. But that's also the case for just calling onToggleVolume in the first place. :-)