Accessing localStorage from a webWorker

前端 未结 4 763
灰色年华
灰色年华 2020-11-28 06:21

Can a WebWorker access the localStorage?

If not why not? Is it problematic from a security stand point?

4条回答
  •  醉梦人生
    2020-11-28 06:50

    kvStorage is a good alternative, however,

    Dec, 2019. kvStorage currently is NOT, and will NOT be supported in chrome in future as well.

    Work on this specification is currently suspended, as no browser teams (including the Chromium project, which originated the proposal) are currently indicating interest in implementing it.

提交回复
热议问题