diff --git a/sdk/src/polyfill/crypto.ts b/sdk/src/polyfill/crypto.ts index c62757052..e6582badb 100644 --- a/sdk/src/polyfill/crypto.ts +++ b/sdk/src/polyfill/crypto.ts @@ -1,3 +1,5 @@ import { webcrypto } from "node:crypto"; -(globalThis as any).crypto = webcrypto; +if ((globalThis as any).crypto == null) { + (globalThis as any).crypto = webcrypto; +}