anza-xyz/wallet-adapter

localstorage sometimes behaves strangely

lucian55 opened this issue · 2 comments

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?

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\""