Skip to content

Instantly share code, notes, and snippets.

@LeonardoCiaccio
Created April 25, 2017 06:08
Show Gist options
  • Select an option

  • Save LeonardoCiaccio/f0c67d2946870e0882fee4cf4b9875ab to your computer and use it in GitHub Desktop.

Select an option

Save LeonardoCiaccio/f0c67d2946870e0882fee4cf4b9875ab to your computer and use it in GitHub Desktop.
// Request storage usage and capacity left
window.webkitStorageInfo.queryUsageAndQuota(webkitStorageInfo.TEMPORARY,
//the type can be either TEMPORARY or PERSISTENT
function(used, remaining) {
console.log("Used quota: " + used + ", remaining quota: " + remaining);
}, function(e) {
console.log('Error', e);
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment