aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-10-31 00:23:38 -0300
committerSebastian <sebasjm@gmail.com>2022-10-31 00:23:38 -0300
commit93ef4dace0accb751a42fae5d4a8d5724ff3a2a0 (patch)
treebe5fc17860d931fe6910b1d76bcbe18202274731 /packages
parent2f17d818023677f4cba6facdc1262249d0b7569b (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.ts3
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();
}