beginning to decompose cryptofill to allow dynamic import

This commit is contained in:
Danny Coates 2019-02-21 12:22:12 -08:00
parent c146c584f6
commit 9e919eddb5
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
5 changed files with 6 additions and 3704 deletions

View file

@ -46,7 +46,8 @@ async function checkCrypto() {
return true;
} catch (err) {
try {
require('./cryptofill');
window.asmCrypto = await import('asmcrypto.js');
await import('./cryptofill');
return true;
} catch (e) {
return false;