summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/quota-management-api.js
blob: 5ce2b02d00fb73f47e7ff7fb68a7ac0c0c7b0916 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Quota Storage Management API
// This API can be used to check how much quota an origin is using and request more

// Currently only implemented in Chrome.
// https://developers.google.com/chrome/whitepapers/storage
// By Addy Osmani

Modernizr.addTest('quotamanagement', function(){
  var storage = Modernizr.prefixed('StorageInfo', window);
  return !!(storage && 'TEMPORARY' in storage && 'PERSISTENT' in storage);
});