diff --git a/packages/dapp-kit/src/constants/certificates.ts b/packages/dapp-kit/src/constants/certificates.ts index 7df6a26f..dd22ddae 100644 --- a/packages/dapp-kit/src/constants/certificates.ts +++ b/packages/dapp-kit/src/constants/certificates.ts @@ -2,7 +2,9 @@ const DEFAULT_CONNECT_CERT_MESSAGE: Connex.Vendor.CertMessage = { purpose: 'identification', payload: { type: 'text', - content: `The following dApp would like to see your public address: ${window.origin}`, + content: `The following dApp would like to see your public address: ${ + typeof window !== 'undefined' ? window.origin : '' + }`, }, };