You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
424 B
12 lines
424 B
7 years ago
|
// 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);
|
||
|
});
|