fix libsodium call from webworker
This commit is contained in:
parent
b4dc18d65b
commit
940972db2f
|
@ -4,5 +4,5 @@ export async function getSodiumNode() {
|
|||
// don't ask me why, but when called from node we have to do this as the types are incorrect?!
|
||||
const anyWrappers = wrappers as any;
|
||||
await anyWrappers.ready;
|
||||
return anyWrappers;
|
||||
return anyWrappers.default;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue