Created
April 25, 2017 06:08
-
-
Save LeonardoCiaccio/f0c67d2946870e0882fee4cf4b9875ab to your computer and use it in GitHub Desktop.
Per vedere la quota rimasta nel browser From http://stackoverflow.com/questions/10988569/what-are-the-storage-limits-for-the-indexed-db-on-googles-chrome-browser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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