From 1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:24 +0200 Subject: convert content to md --- files/fr/web/api/storagemanager/index.md | 45 +++++++++++--------------------- 1 file changed, 15 insertions(+), 30 deletions(-) (limited to 'files/fr/web/api/storagemanager/index.md') diff --git a/files/fr/web/api/storagemanager/index.md b/files/fr/web/api/storagemanager/index.md index afc0bd77ad..f2d0ddb3ae 100644 --- a/files/fr/web/api/storagemanager/index.md +++ b/files/fr/web/api/storagemanager/index.md @@ -16,40 +16,25 @@ tags: - Usage translation_of: Web/API/StorageManager --- -

{{securecontext_header}}{{SeeCompatTable}}{{APIRef("Storage")}}

+{{securecontext_header}}{{SeeCompatTable}}{{APIRef("Storage")}} -

The StorageManager interface of the the Storage API provides an interface for managing persistance permissions and estimating available storage. You can get a reference to this interface using either {{domxref("navigator.storage")}} or {{domxref("WorkerNavigator.storage")}}.

+The **`StorageManager`** interface of the the [Storage API](/en-US/docs/Web/API/Storage_API) provides an interface for managing persistance permissions and estimating available storage. You can get a reference to this interface using either {{domxref("navigator.storage")}} or {{domxref("WorkerNavigator.storage")}}. -

Methods

+## Methods -
-
{{domxref("StorageManager.estimate()")}} {{securecontext_inline}}
-
Returns a {{domxref("StorageEstimate")}} object containing usage and quota numbers for your origin.
-
{{domxref("StorageManager.persist()")}} {{securecontext_inline}}
-
Returns a {{jsxref('Promise')}} that resolves to true if the user agent is able to persist your site's storage.
-
{{domxref("StorageManager.persisted()")}} {{securecontext_inline}}
-
Returns a {{jsxref('Promise')}} that resolves to true if persistence has already been granted for your site's storage.
-
+- {{domxref("StorageManager.estimate()")}} {{securecontext_inline}} + - : Returns a {{domxref("StorageEstimate")}} object containing usage and quota numbers for your origin. +- {{domxref("StorageManager.persist()")}} {{securecontext_inline}} + - : Returns a {{jsxref('Promise')}} that resolves to `true` if the user agent is able to persist your site's storage. +- {{domxref("StorageManager.persisted()")}} {{securecontext_inline}} + - : Returns a {{jsxref('Promise')}} that resolves to `true` if persistence has already been granted for your site's storage. -

Specifications

+## Specifications - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('Storage','#storagemanager','StorageManger')}}{{Spec2('Storage')}}Initial definition.
+| Specification | Status | Comment | +| ---------------------------------------------------------------------------- | ---------------------------- | ------------------- | +| {{SpecName('Storage','#storagemanager','StorageManger')}} | {{Spec2('Storage')}} | Initial definition. | -

Browser compatibility

+## Browser compatibility - - -

{{Compat("api.StorageManager")}}

+{{Compat("api.StorageManager")}} -- cgit v1.2.3-54-g00ecf