diff options
-rw-r--r-- | src/crypto/workers/nodeThreadWorker.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crypto/workers/nodeThreadWorker.ts b/src/crypto/workers/nodeThreadWorker.ts index b42031c40..35aa657ba 100644 --- a/src/crypto/workers/nodeThreadWorker.ts +++ b/src/crypto/workers/nodeThreadWorker.ts @@ -27,6 +27,12 @@ import { CryptoImplementation } from "./cryptoImplementation"; const f = __filename; const workerCode = ` + // Try loading the glue library for Android + try { + require("akono"); + } catch (e) { + // Probably we're not on Android ... + } const worker_threads = require('worker_threads'); const parentPort = worker_threads.parentPort; let tw; |