Forum Discussion
Getting localstorage key?
- 26 days ago
As far as I know there is no way to get this key with Javascript, not even via the undocumented DS interface
therefore you have to insert the key into the course manually or through a small (python) script
extract the "resume key" from "html5/data/js/data.js"
search for
- "resume":{"id":"
add one line to "story.html"
now you can use
window.localStorageKey
to access the localStorage with your JavaScript
IMPORTANT: On every publish a new key is generated, so you have to redo all steps
As far as I know there is no way to get this key with Javascript, not even via the undocumented DS interface
therefore you have to insert the key into the course manually or through a small (python) script
extract the "resume key" from "html5/data/js/data.js"
search for
- "resume":{"id":"
add one line to "story.html"
now you can use
window.localStorageKey
to access the localStorage with your JavaScript
IMPORTANT: On every publish a new key is generated, so you have to redo all steps
- WMS26 days agoCommunity Member
Thank you! I figured out where the key is on my own but I didn't know that you can just add that to story.html.