diff options
author | Florian Dold <florian@dold.me> | 2022-10-31 16:50:54 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-31 16:51:01 +0100 |
commit | 780eb20227d07afeea654e8b883790b6b1ab8e1c (patch) | |
tree | bb3ed226e4301d313133a8b79c80a800447dd604 /packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts | |
parent | 6d08ed0680bc94637212e4bc18e162e930eff77f (diff) | |
download | wallet-core-780eb20227d07afeea654e8b883790b6b1ab8e1c.tar.xz |
wallet-core: fix deposit with age restrictions
Diffstat (limited to 'packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts b/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts index de8f12902..f255e3cfd 100644 --- a/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts +++ b/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts @@ -19,6 +19,7 @@ */ import { Logger } from "@gnu-taler/taler-util"; import os from "os"; +import url from "url"; import { nativeCryptoR } from "../cryptoImplementation.js"; import { CryptoWorkerFactory } from "./cryptoDispatcher.js"; import { CryptoWorker } from "./cryptoWorkerInterface.js"; @@ -26,7 +27,7 @@ import { processRequestWithImpl } from "./worker-common.js"; const logger = new Logger("nodeThreadWorker.ts"); -const f = import.meta.url; +const f = url.fileURLToPath(import.meta.url); const workerCode = ` // Try loading the glue library for embedded |