diff --git a/frontend/src/index.js b/frontend/src/index.js index c97771be..cf7c14e4 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -36,7 +36,7 @@ const getWebCrypto = () => { }; // Override the global crypto object -if (typeof window !== 'undefined' && !window.crypto.getWebCrypto) { +if (typeof window !== 'undefined' && !window.crypto.subtle) { window.crypto = { getRandomValues: (arr) => { for (let i = 0; i < arr.length; i++) {