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

fix(analytics-browser): fall back to MemoryStorage when localStorage is disabled #793

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

Mercy811
Copy link
Contributor

@Mercy811 Mercy811 commented Jun 25, 2024

Summary

AMP-103256

This PR fixes #788 by setting config.storageProvider to be MemoryStorage when config.storageProvider (by default localStorage is disabled) as localStorage can be disabled in private mode browsers.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?:

@Mercy811 Mercy811 requested review from izaaz and justin-fiedler June 25, 2024 16:51
@Mercy811 Mercy811 merged commit bb7664e into main Jun 26, 2024
6 checks passed
@Mercy811 Mercy811 deleted the AMP-103256-falls-back-to-memory-storage branch June 26, 2024 15:59
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 this pull request may close these issues.

SecurityError: Operation is insecure
2 participants