mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-05 08:24:15 +00:00
Fix errors
This commit is contained in:
@ -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 => {
|
||||
|
@ -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) => {
|
||||
|
Reference in New Issue
Block a user