Closed alexeyorlove closed 3 years ago
Hey. I am getting error in webcrypto-liner.shim.mjs because _asmcryptojs is undefined.
Because self.asmCrypto is undefined too.
Although I am including both of these packages.
require ("asmcrypto.js") require ("webcrypto-liner")
But if I connect like this, everything works. But it doesn't look right.
window.asmCrypto = require ("asmcrypto.js") require ("webcrypto-liner")
How to use this polyfill correctly? Thanks
@alexeyorlove Hello. Now webcrypto-liner uses the global asnCrypto object. Please look at https://github.com/PeculiarVentures/webcrypto-liner/issues/79#issuecomment-668453929
webcrypto-liner
asnCrypto
@donskov thanks!
Hey. I am getting error in webcrypto-liner.shim.mjs because _asmcryptojs is undefined.
Because self.asmCrypto is undefined too.
Although I am including both of these packages.
But if I connect like this, everything works. But it doesn't look right.
How to use this polyfill correctly? Thanks