Skip to content

Commit

Permalink
feat: redirect mobile browsers back to the wallet after action
Browse files Browse the repository at this point in the history
  • Loading branch information
thekiba committed Feb 29, 2024
1 parent 5d56d77 commit ccebd56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ui/src/app/utils/url-strategy-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ export function redirectToTelegram(
if (isOS('ios', 'android')) {
// Use the `none` strategy. TON Space should do nothing after the user action.

options.returnStrategy = 'none';
// TODO: do it more elegant
// options.returnStrategy = 'none';
options.returnStrategy = location.href as ReturnStrategy;

openLinkBlank(addReturnStrategy(directLinkUrl.toString(), options.returnStrategy));
} else if (isOS('macos', 'windows', 'linux')) {
Expand Down

0 comments on commit ccebd56

Please sign in to comment.