mirror of
https://github.com/timvisee/send.git
synced 2026-04-18 21:54:11 -04:00
replaced cryptofill with webcrypto-liner
This commit is contained in:
+1
-1
@@ -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
File diff suppressed because it is too large
Load Diff
+4
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user