You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 duringsign(algorithm, key, data)
will throw aTypeError
both with a wrong key or a wrong data object. It seems like a support property could come in handy? Something likecrypto.subtle.supportsStreams
?The text was updated successfully, but these errors were encountered: