kevlened / isomorphic-webcrypto

:game_die: webcrypto library for Node, React Native and IE11+
https://www.w3.org/TR/WebCryptoAPI/
MIT License
116 stars 43 forks source link

add support for web worker #56

Open pastleo opened 2 years ago

pastleo commented 2 years ago

as title, use (typeof window !== 'undefined') to detect if window available, if not, use self.crypto instead