I attempted the code below to retrieve indexedDb quota storage information
navigator.webkitTemporaryStorage.queryUsageAndQuota (
function(usedBytes, grantedBytes) {
console.log('we are using ', usedBytes, ' of ', grantedBytes, 'bytes');
},
function(e) { console.log('Error', e); }
);
Unfortunately, it is not functioning as expected and displaying the following error message.
Property 'webkitTemporaryStorage' does not exist on type 'Navigator'.
Is there a way to obtain indexedDb quota storage details in typescript? Any potential solutions?