WorkerNavigator: storage property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since December 2021.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
Note: This feature is only available inWeb Workers.
Thestorage read-only property of theWorkerNavigator interfacereturns the singletonStorageManager object used toaccess the overall storage capabilities of the browser for the current site or app.The returned object lets you examine and configure persistence of data stores andlearn approximately how much more space your browser has available for local storageuse.
In this article
Value
AStorageManager object you can use to maintain persistence for storeddata, as well as to determine roughly how much room there is for data to be stored.
Specifications
| Specification |
|---|
| Storage> # dom-navigatorstorage-storage> |