learningequality / learningequality/studio
Use fully featured Kolibri/Hashi enhanced HTML5 app rendering to give veridical preview experience
Open
Nobody has claimed this yet.
DEV: renderers
TAG: new feature
- Dominant language
- Python
- Stars
- 191
- Forks
- 307
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
Observed behavior
I can't use localStorage in my HTML5 app.
Expected behavior
Can use localStorage
User-facing consequences
My learning game need localStorage to work.
Errors and logs
Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag.
Steps to reproduce
I use this code in a simple javascript file :
console.log(window.localStorage)
if (window.localStorage) {
window.localStorage.setItem('userId', 10)
console.log(window.localStorage.getItem('userId'))
}
Context
- Browser : Chrome
- Kolibri version : I use Kolibri Studio here : https://studio.learningequality.org/channels/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the simple JavaScript example in Chrome and confirm the sandboxed document's localStorage error. Then trace how Kolibri Studio renders HTML5 apps and how its sandbox is configured; done means the learning game can use localStorage in preview while the intended isolation remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100