WorkerNavigator.storage
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The WorkerNavigator.storage
read-only property returns the singleton StorageManager
object used to access 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 and learn approximately how much more space your browser has available for local storage use.
Syntax
var storageManager = navigator.storage;
Value
A StorageManager
object you can use to maintain persistence for stored data, as well as to determine roughly how much room there is for data to be stored.
Specifications
Specification |
---|
Storage Standard (Storage) # dom-navigatorstorage-storage |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
storage |
55 |
79 |
57 |
No |
42 |
No |
55 |
55 |
57 |
42 |
No |
6.0 |
See also
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/storage