Skip to content

Commit

Permalink
fix: support NextJS (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
HiiiiD authored Mar 5, 2024
1 parent 14c2c9e commit d818890
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/dapp-kit/src/constants/certificates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 : ''
}`,
},
};

Expand Down

0 comments on commit d818890

Please sign in to comment.