Details
Details
- Reviewers
michal tomek - Commits
- rCOMMeeeb9f733c51: [web] initialize `localforage` on main thread
- Try to add data to indexedDB from main thread
- Check in database on worker still works
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
web/database/worker/db-worker.js | ||
---|---|---|
53 ↗ | (On Diff #27484) | Should we still call it here? Or is calling just from root is enough? |
web/database/worker/db-worker.js | ||
---|---|---|
53 ↗ | (On Diff #27484) | Main thread and worker thread have different contexts and because of that (probably, as docs do not cover this) also have different localforage instances. Without calling this in both places, one place will use comm indexedDB instance and the second one will use the default one which is called localfoarge-*host* |