Created
February 4, 2016 22:33
-
-
Save tab1293/a87eac8cf411700374f6 to your computer and use it in GitHub Desktop.
Chrome Storage Check
This file contains 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