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

[<SDK>]: <windowKeys filter would never work> #219

Open
liam-safulet opened this issue Jul 30, 2024 · 1 comment
Open

[<SDK>]: <windowKeys filter would never work> #219

liam-safulet opened this issue Jul 30, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@liam-safulet
Copy link

Describe the bug

const wallets = windowKeys.filter(([_, value]) =>

in this piece code,

Object.keys(window).filter(([_, value]) => {})

the value is always the 2nd letter of the key isn't it? For example the key is document, the value is o, how can it be an object as {tonconnect: xxx}. So the getCurrentlyInjectedWallets method would always return empty array

However...some wallets works good with it, I don't know what the magic behind it

Expected behavior

Object.entries(window).filter(([_, value]) => {})

Current behavior

Object.keys(window).filter(([_, value]) => {})

Steps to Reproduce

read code, and run code

Environment

node js

Additional context

No response

@liam-safulet liam-safulet added the bug Something isn't working label Jul 30, 2024
@fish-yan
Copy link

@thekiba Hope fix this bug,This bug makes it impossible to detect injected wallets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants