Public
Snippet $94 authored by Boris Kocherov

test for view appcache size available

Edited
appcache_size.js
navigator.webkitTemporaryStorage.queryUsageAndQuota ( 
    function(usedBytes, grantedBytes) {  
        console.log('we are using ', usedBytes/1024/1024, ' of ', grantedBytes/1024/1024, 'Mb');
    }, 
    function(e) { console.log('Error', e);  }
);