Fix errors

This commit is contained in:
koalasat
2025-05-21 13:01:03 +02:00
parent 4a48782288
commit 9382b6093a
2 changed files with 2 additions and 2 deletions

View File

@ -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 => {

View File

@ -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) => {