fix libsodium call from webworker

This commit is contained in:
Audric Ackermann 2022-04-06 11:14:16 +10:00
parent b4dc18d65b
commit 940972db2f
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}