From 5fb23ac8335acd34a93c26f40fee3c62c7bb07a0 Mon Sep 17 00:00:00 2001 From: Bart Butler Date: Wed, 29 Mar 2017 16:27:16 -0700 Subject: [PATCH] use web worker for reformatKey --- src/openpgp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpgp.js b/src/openpgp.js index c2181519..d523d5d4 100644 --- a/src/openpgp.js +++ b/src/openpgp.js @@ -126,7 +126,7 @@ export function generateKey({ userIds=[], passphrase, numBits=2048, unlocked=fal export function reformatKey({ privateKey, userIds=[], passphrase="", unlocked=false, keyExpirationTime=0 } = {}) { const options = formatUserIds({ privateKey, userIds, passphrase, unlocked, keyExpirationTime }); - if (!util.getWebCryptoAll() && asyncProxy) { // use web worker if web crypto apis are not supported + if (asyncProxy) { return asyncProxy.delegate('reformatKey', options); }