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

localstorage sometimes behaves strangely #977

Open
lucian55 opened this issue May 31, 2024 · 2 comments
Open

localstorage sometimes behaves strangely #977

lucian55 opened this issue May 31, 2024 · 2 comments

Comments

@lucian55
Copy link

When I use Phantom to connect to my wallet, the walletName in localstorage is set to "Phantom", which is normal. When I refresh the page, "Phantom" sometimes becomes
"\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Phantom\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\"\\\"\""

It happens occasionally, not necessarily. What's going on?

@lucian55
Copy link
Author

I know the reason.
For the same website, open two tabs, one using Phantom and the other disabling Phantom. Refreshing the disabled tab will cause the value of localstorage to be reset to "\"Phantom\""

@mcintyre94
Copy link
Collaborator

@lucian55 Could you give more information on how to reproduce this? If you can give step-by-step instructions using https://anza-xyz.github.io/wallet-adapter/example/ that'd be great!

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

No branches or pull requests

2 participants