From cc137c87394ec34d2f54d69fe896dfdf3feec5ea Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 10 Dec 2019 23:38:40 +0100 Subject: android fix --- src/crypto/workers/nodeThreadWorker.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/crypto') 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; -- cgit v1.2.3