← Back to release summary
navigator.storage.estimate() - returns a Promise which resolves with {usage, quota} values in bytes.
Docs: https://developer.mozilla.org/en-US/docs/Web/API/StorageManager https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/estimate
View on chromestatus.com