# Add Leap to existing Keplr integration

Similar to Keplr, you can find an object named 'leap' in the window object, which can be accessed using `window.leap`

To support Leap cosmos wallet on a dapp where Keplr is already integrated, follow these steps:&#x20;

* A Modal will be required for a user to select Leap or Keplr.
* The dapp will have to maintain a persistent state to store which wallet is connected.
* Based on the connected wallet, set

`window.wallet = window.leap`

* Also, add the following event accordingly:

```tsx
window.addEventListener('leap_keystorechange', reconnectWallet)
```

* Now replace `window.keplr` with `window.wallet` in the whole application
* Replace the following:

```jsx
window.getOfflineSigner
window.getOfflineSignerOnlyAmino
window.getOfflineSignerAuto
window.getEnigmaUtils
```

with

```jsx
window.leap.getOfflineSigner
window.leap.getOfflineSignerOnlyAmino
window.leap.getOfflineSignerAuto
window.leap.getEnigmaUtils
```

For Leap assets, such as the wallet name, logo, and redirection link, please refer to our [documentation here](https://docs.leapwallet.io/cosmos/resources/leap-assets). These assets are useful in case Leap wallet is not installed.
