replaced cryptofill with webcrypto-liner

This commit is contained in:
Danny Coates 2019-02-21 15:20:28 -08:00
parent 9e919eddb5
commit de88885189
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
8 changed files with 33 additions and 10907 deletions

View file

@ -47,7 +47,7 @@ async function checkCrypto() {
} catch (err) {
try {
window.asmCrypto = await import('asmcrypto.js');
await import('./cryptofill');
await import('@dannycoates/webcrypto-liner/build/shim');
return true;
} catch (e) {
return false;

File diff suppressed because it is too large Load diff

View file

@ -28,7 +28,10 @@ if (process.env.NODE_ENV === 'production') {
(async function start() {
const capabilities = await getCapabilities();
if (!capabilities.crypto) {
if (
!capabilities.crypto &&
window.location.pathname !== '/unsupported/crypto'
) {
return window.location.assign('/unsupported/crypto');
}
if (capabilities.serviceWorker) {