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