diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-10 23:38:40 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-10 23:38:40 +0100 |
commit | cc137c87394ec34d2f54d69fe896dfdf3feec5ea (patch) | |
tree | 6d5a85b39e28b00e9b817c25c9b2955cb8eec8ac /src/crypto/workers/nodeThreadWorker.ts | |
parent | f05788f59d2872b52410e1689b2c7e896541dff9 (diff) | |
download | wallet-core-cc137c87394ec34d2f54d69fe896dfdf3feec5ea.tar.xz |
android fix
Diffstat (limited to 'src/crypto/workers/nodeThreadWorker.ts')
-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; |