Skip to content

How to detect the support of streams #4

Description

@martinheidegger

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions