android fix
This commit is contained in:
parent
f05788f59d
commit
cc137c8739
@ -27,6 +27,12 @@ import { CryptoImplementation } from "./cryptoImplementation";
|
|||||||
const f = __filename;
|
const f = __filename;
|
||||||
|
|
||||||
const workerCode = `
|
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 worker_threads = require('worker_threads');
|
||||||
const parentPort = worker_threads.parentPort;
|
const parentPort = worker_threads.parentPort;
|
||||||
let tw;
|
let tw;
|
||||||
|
Loading…
Reference in New Issue
Block a user