HomePhabricator
Diffusion Comm eeeb9f733c51

[web] initialize `localforage` on main thread

Description

[web] initialize localforage on main thread

Summary:
On Safari we need to persist key from main thread. (context)

Depends on D8116

Test Plan:

  1. Try to add data to indexedDB from main thread
  2. Check in database on worker still works

Reviewers: michal, tomek

Reviewed By: tomek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D8117

Details

Provenance
kamilAuthored on Jun 6 2023, 6:40 AM
Reviewer
tomek
Differential Revision
D8117: [web] initialize `localforage` on main thread
Parents
rCOMMab9fe33b4536: [web-db] change Error type to string
Branches
Unknown
Tags
Unknown