Is there anything like ondelete event handler, or way to warn user before they want to clear the indexedDB database.
Background: There is a offline first app, that works by saving most of the data on indexedDB while offline. Now, when the user goes online, it tries to sync the data to the server, but, now, if someone mistakenly resets browser or clears the indexedDB, they might create a disaster, since they have important data that needs to sync to server.
So, is there any way to overcome this problem? Is there a way to save indexedDB as a persistent file system or disable deletion or raise an event and handle properly when there is a deletion?