Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap localStorage read/write access in try-catch block #1013

Closed
caugner opened this issue Nov 28, 2022 · 0 comments · Fixed by #1038
Closed

Wrap localStorage read/write access in try-catch block #1013

caugner opened this issue Nov 28, 2022 · 0 comments · Fixed by #1038

Comments

@caugner
Copy link
Contributor

caugner commented Nov 28, 2022

(Part of mdn/yari#7692.)

## Problem

Opening https://developer.mozilla.org/en-US/docs/Web/CSS/Flex in Chrome Incognito Mode causes the following console:
image

## Solution

Wrap all read/write accesses to localStorage in a try-catch block (like in mdn/yari#6352).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant