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;