diff options
author | Sebastian <sebasjm@gmail.com> | 2022-10-31 00:23:38 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-10-31 00:23:38 -0300 |
commit | 93ef4dace0accb751a42fae5d4a8d5724ff3a2a0 (patch) | |
tree | be5fc17860d931fe6910b1d76bcbe18202274731 /packages | |
parent | 2f17d818023677f4cba6facdc1262249d0b7569b (diff) |
sync worker doesn't use require and ESM doesn't allows it
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/workers/synchronousWorkerFactory.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/crypto/workers/synchronousWorkerFactory.ts b/packages/taler-wallet-core/src/crypto/workers/synchronousWorkerFactory.ts index 8f0f7d124..6ce21572e 100644 --- a/packages/taler-wallet-core/src/crypto/workers/synchronousWorkerFactory.ts +++ b/packages/taler-wallet-core/src/crypto/workers/synchronousWorkerFactory.ts @@ -27,9 +27,6 @@ import { SynchronousCryptoWorker } from "./synchronousWorkerNode.js"; */ export class SynchronousCryptoWorkerFactory implements CryptoWorkerFactory { startWorker(): CryptoWorker { - if (typeof require === "undefined") { - throw Error("cannot make worker, require(...) not defined"); - } return new SynchronousCryptoWorker(); } |