mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-02 15:03:28 +00:00
multiple web workers
This commit is contained in:
@@ -50,7 +50,7 @@ function tests() {
|
||||
describe('Random number pipeline', function() {
|
||||
it('Random number buffer automatically reseeded', function() {
|
||||
const worker = new Worker('../dist/openpgp.worker.js');
|
||||
const wProxy = new openpgp.AsyncProxy({ path:'../dist/openpgp.worker.js', worker });
|
||||
const wProxy = new openpgp.AsyncProxy({ path:'../dist/openpgp.worker.js', workers: [worker] });
|
||||
|
||||
return wProxy.delegate('encrypt', { publicKeys:[pubKey], data:plaintext });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user