diff options
Diffstat (limited to 'src/crypto/synchronousWorker.ts')
-rw-r--r-- | src/crypto/synchronousWorker.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/crypto/synchronousWorker.ts b/src/crypto/synchronousWorker.ts index c8ee3be19..1c98209aa 100644 --- a/src/crypto/synchronousWorker.ts +++ b/src/crypto/synchronousWorker.ts @@ -102,14 +102,21 @@ export class SynchronousCryptoWorker { const savedImportScripts = g.importScripts; // @ts-ignore delete g.importScripts; + // @ts-ignore + const savedCrypto = g.crypto; + // @ts-ignore + delete g.crypto; // Assume that the code is run from the build/ directory. const libFn = indirectRequire( "../../../emscripten/taler-emscripten-lib.js", ); - const lib = libFn(libArgs); + lib = libFn(libArgs); + // @ts-ignore g.importScripts = savedImportScripts; + // @ts-ignore + g.crypto = savedCrypto; if (!lib) { throw Error("could not load taler-emscripten-lib.js"); |