Skip to content

Commit

Permalink
refactored formatNativeUrl for Galaxy Station mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
echel0n-HX committed Feb 7, 2025
1 parent 3e52668 commit 0e5b3ab
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions wallets/galaxy-station-mobile/src/wallet-connect/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,13 @@ export const GalaxyStationMobileInfo: Wallet = {
},
},
formatNativeUrl: (
appUrl: string,
_appUrl: string,
wcUri: string,
os: OS | undefined,
_os: OS | undefined,
_name: string
): string => {
const plainAppUrl = appUrl.split(':')[0];
const encodedWcUrl = encodeURIComponent(wcUri);
switch (os) {
case 'ios':
return `https://station.hexxagon.io/wcV2?${encodedWcUrl}`;
case 'android':
return `https://station.hexxagon.io/wcV2?${encodedWcUrl}`;
default:
return `https://station.hexxagon.io/wcV2?${encodedWcUrl}`;
}
return `https://station.hexxagon.io/wcV2?${encodedWcUrl}`;
},
},
};

0 comments on commit 0e5b3ab

Please sign in to comment.