Skip to content

Comment on Porting a 100% local app to the web

Comments

Are you using the quota API? Looks like you can ask how much space is available, so you could warn the user to free space if it is below some threshold.

https://web.dev/storage-for-the-web/#check

Not yet! I plan to but it's not fully supported (I think Safari is the only one missing?) and you still have to handle quota exceeded errors anyway. My first step will be handle the quota errors gracefully and warn users that it's not locally saving changes.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.