Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Request persistent storage on Electron #11052
It's still not 100% clear whether storage is always persistent on
We could do this on non-desktop too but it's a bit of a mess because
It's still not 100% clear whether storage is always persistent on Electron, but we seem to be getting reports of it being deleted in the wild on Electron, so let's try calling the API to request persistent storage. It won't pop up a dialog on Electron. In the worst case it will give us some logging so we know what the API calls return. We could do this on non-desktop too but it's a bit of a mess because Firefox prompts the user but Chrome makes a decision itself based on how much the user visits the site.