Skip to content

Commit

Permalink
Update files/en-us/web/api/storage_access_api/using/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
arichiv and github-actions[bot] authored May 3, 2024
1 parent dfdcfa0 commit 47a01a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion files/en-us/web/api/storage_access_api/using/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ async function handleCookieAccess() {
// Need to call requestStorageAccess() after a user interaction
btn.addEventListener("click", async () => {
try {
const handle = await document.requestStorageAccess({cookies: true, localStorage: true});
const handle = await document.requestStorageAccess({
cookies: true,
localStorage: true,
});
doThingsWithLocalStorage(handle);
doThingsWithCookies();
} catch (err) {
Expand Down

0 comments on commit 47a01a7

Please sign in to comment.