summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/quota-management-api.js
diff options
context:
space:
mode:
Diffstat (limited to 'source/bower_components/modernizr/feature-detects/quota-management-api.js')
-rw-r--r--source/bower_components/modernizr/feature-detects/quota-management-api.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/bower_components/modernizr/feature-detects/quota-management-api.js b/source/bower_components/modernizr/feature-detects/quota-management-api.js
new file mode 100644
index 0000000..5ce2b02
--- /dev/null
+++ b/source/bower_components/modernizr/feature-detects/quota-management-api.js
@@ -0,0 +1,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);
+});