persist-storage
Enable persistent storage in the browser.
By default storage such as indexedDB
can be cleared when a device starts
running out of space. This module is a thin wrapper around the StorageManager API
, checking if persistent storage is
enabled — and enabling it if it isn't enabled yet, and able to enable it.
Usage
var persist =
API
persist(callback(ok))
Enable persistent storage. Calls a callback with a boolean that's true
for
success and false
for failure to enable it.