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