From 5e3fa9ba830093d323a8fa025414d090d7873e0b Mon Sep 17 00:00:00 2001 From: Ari Chivukula Date: Fri, 3 May 2024 09:01:58 -0400 Subject: [PATCH] Update files/en-us/web/api/storage_access_api/using/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- files/en-us/web/api/storage_access_api/using/index.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/en-us/web/api/storage_access_api/using/index.md b/files/en-us/web/api/storage_access_api/using/index.md index 03f8380725b6035..828be717a497829 100644 --- a/files/en-us/web/api/storage_access_api/using/index.md +++ b/files/en-us/web/api/storage_access_api/using/index.md @@ -74,7 +74,10 @@ async function handleCookieAccess() { if (permission.state === "granted") { // If so, you can just call requestStorageAccess() without a user interaction, // and it will resolve automatically. - const handle = await document.requestStorageAccess({cookies: true, localStorage: true}); + const handle = await document.requestStorageAccess({ + cookies: true, + localStorage: true, + }); doThingsWithLocalStorage(handle); doThingsWithCookies(); } else if (permission.state === "prompt") {