aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-10 23:38:40 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-10 23:38:40 +0100
commitcc137c87394ec34d2f54d69fe896dfdf3feec5ea (patch)
tree6d5a85b39e28b00e9b817c25c9b2955cb8eec8ac /src
parentf05788f59d2872b52410e1689b2c7e896541dff9 (diff)
android fix
Diffstat (limited to 'src')
-rw-r--r--src/crypto/workers/nodeThreadWorker.ts6
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;