From 4a48782288a253b10773df35dcf64c018a09f247 Mon Sep 17 00:00:00 2001 From: koalasat Date: Wed, 21 May 2025 12:48:28 +0200 Subject: [PATCH] Overwrite only when necesary --- frontend/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index df0cbdb9..53b4e5d3 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -61,7 +61,7 @@ const App = (): React.JSX.Element => { }; }; - if (typeof window !== 'undefined') { + if (typeof window !== 'undefined' && !window.crypto.subtle) { // eslint-disable-next-line @typescript-eslint/no-explicit-any (window as any).crypto = { getRandomValues: (arr: Uint8Array): Uint8Array => {