replaced cryptofill with webcrypto-liner
This commit is contained in:
parent
9e919eddb5
commit
de88885189
8 changed files with 33 additions and 10907 deletions
|
@ -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
app/cryptofill.js
10901
app/cryptofill.js
File diff suppressed because it is too large
Load diff
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue