Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcasey committed Dec 3, 2024
1 parent a0851ea commit 91dd8b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/scoutgame-ui/src/providers/WagmiProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ function useMetamaskInterceptor() {

function getMMDeeplink() {
const currentUrl = window.location.host + getBrowserPath();
// use a custom scheme to avoid redirect to the app store
// this breaks if user does not have metamask installed but its a decent tradeoff
const deeplink = `metamask://dapp/${currentUrl}`;

return deeplink;
Expand Down

0 comments on commit 91dd8b2

Please sign in to comment.