replaced cryptofill with webcrypto-liner

This commit is contained in:
Danny Coates
2019-02-21 15:20:28 -08:00
parent 9e919eddb5
commit de88885189
8 changed files with 33 additions and 10907 deletions
+1 -1
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;
-10901
View File
File diff suppressed because it is too large Load Diff
+4 -1
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) {