android fix

This commit is contained in:
Florian Dold 2019-12-10 23:38:40 +01:00
parent f05788f59d
commit cc137c8739
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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;