Skip to content

Commit

Permalink
fix iframe docs (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki authored May 9, 2024
2 parents 9f9fba4 + 630e9eb commit c735945
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/docs/guides/connect-using-iframe.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Connect wallet through iframe

You can connect to a specific wallet by using the `useConnect` hook. You can connect to a specific wallet by passing the `walletType` parameter to the `connect` function.

Read more about [wallet types](../types/walletType.md).
First you have to set the allowed origins for the iframe wallet, then you can connect.

### Pass allowed iframe parent origins to `grazOptions` in `GrazProvider`

Expand Down Expand Up @@ -46,8 +44,8 @@ const isIframeAvailable = checkWallet(WalletType.COSMIFRAME);

return (
<>
{isKeplrSupported && (
<button onClick={() => connect({ chainId: "cosmoshub-4", walletType: WalletType.KEPLR })}>Connect</button>
{isIframeAvailable && (
<button onClick={() => connect({ chainId: "cosmoshub-4", walletType: WalletType.COSMIFRAME })}>Connect</button>
)}
</>
);
Expand Down

0 comments on commit c735945

Please sign in to comment.