signum-network / phoenix

The official cross-platform wallet for the Signum Blockchain Platform
https://phoenix-wallet.rocks
GNU General Public License v3.0
97 stars 38 forks source link

Automatic Cache Clearing when Localstorage hits the limit #1753

Open ohager opened 1 year ago

ohager commented 1 year ago

Is your feature request related to a problem? Please describe. As long as #1717 is not done yet, a workaround would be the automatic cache deletion when coming close to localstorages limit of 5MiB

Describe the solution you'd like

const {size}= new Blob(Object.values(localStorage))

Allows to get the byte size of the localstorage...additionally to automatic clearing, it's a good idea, to add this in the configuration settings, e.g. a button to clear only transaction data

Describe alternatives you've considered

Alternative is #1717

Additional context Add any other context or screenshots about the feature request here.

easye35 commented 1 year ago

Just make sure it doesn't delete wallet info...lol