quota-management-api.js 424 B

1234567891011
  1. // Quota Storage Management API
  2. // This API can be used to check how much quota an origin is using and request more
  3. // Currently only implemented in Chrome.
  4. // https://developers.google.com/chrome/whitepapers/storage
  5. // By Addy Osmani
  6. Modernizr.addTest('quotamanagement', function(){
  7. var storage = Modernizr.prefixed('StorageInfo', window);
  8. return !!(storage && 'TEMPORARY' in storage && 'PERSISTENT' in storage);
  9. });