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

How to detect the support of streams #4

Open
martinheidegger opened this issue Jun 4, 2022 · 0 comments
Open

How to detect the support of streams #4

martinheidegger opened this issue Jun 4, 2022 · 0 comments

Comments

@martinheidegger
Copy link
Contributor

Reading the explainer I am wondering how to detect it once the API is supported. In a preceding comment it is mentioned that try/catch could suffice to detect support, however in a simple API test I noticed that during sign(algorithm, key, data) will throw a TypeError both with a wrong key or a wrong data object. It seems like a support property could come in handy? Something like crypto.subtle.supportsStreams?

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

1 participant