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

Provide function for getting webln instance without enabling #24

Open
wbobeirne opened this issue Apr 24, 2019 · 0 comments
Open

Provide function for getting webln instance without enabling #24

wbobeirne opened this issue Apr 24, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@wbobeirne
Copy link
Member

For folks who want to detect if a user has a webln client, and treat them differently without triggering an enable call, they currently have to check for window.webln. Rather than have those checks littered throughout apps and making it different to alternative methods of webln injection, we should provide a function that does that for them. Something like getProvider. For the sake of future-proofing for those alternative cases, it may be best to keep the function asynchronous, though that may be frustrating for some use-cases.

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

No branches or pull requests

1 participant