From 9382b6093a14e0745ff7608fd5c267d405e7d721 Mon Sep 17 00:00:00 2001 From: koalasat Date: Wed, 21 May 2025 13:01:03 +0200 Subject: [PATCH] Fix errors --- frontend/src/App.tsx | 2 +- frontend/src/services/System/SystemWebClient/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 53b4e5d3..dd945f40 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -61,7 +61,7 @@ const App = (): React.JSX.Element => { }; }; - if (typeof window !== 'undefined' && !window.crypto.subtle) { + if (typeof window !== 'undefined' && !window?.crypto?.subtle) { // eslint-disable-next-line @typescript-eslint/no-explicit-any (window as any).crypto = { getRandomValues: (arr: Uint8Array): Uint8Array => { diff --git a/frontend/src/services/System/SystemWebClient/index.ts b/frontend/src/services/System/SystemWebClient/index.ts index c7ba874d..12b95964 100644 --- a/frontend/src/services/System/SystemWebClient/index.ts +++ b/frontend/src/services/System/SystemWebClient/index.ts @@ -46,7 +46,7 @@ class SystemWebClient implements SystemClient { }; public setCookie: (key: string, value: string) => void = (key, value) => { - document.cookie = `${key}=${value};path=/;SameSite=None;Secure`; + document.cookie = `${key}=${value};path=/;SameSite=None;`; }; public deleteCookie: (key: string) => void = (key) => {