Is there a way to increase the size of localStorage in Google Chrome to avoid QUOTA_EXCEEDED_ERR: DOM Exception 22

前端 未结 4 968
忘了有多久
忘了有多久 2020-12-08 19:46

I\'ve written a webapp that allows you to store the images in the localStorage until you hit save (so it works offline, if signal is poor).

When the localStorage rea

4条回答
  •  孤街浪徒
    2020-12-08 20:22

    You can't but if you save JSON in your localStorage you can use a library to compress data like : https://github.com/k-yak/JJLC

    demo : http://k-yak.github.io/JJLC/

提交回复
热议问题