Skip to content

Commit

Permalink
window.Telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
bwsarge committed Jul 14, 2024
1 parent 43c7a23 commit 1a2b309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkers-app/src/pages/Onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import PhoneInput from "react-phone-number-input";

function openLink(url: string) {
if (window.Telegram.WebApp) {
Telegram.WebApp.openLink(url);
window.Telegram.WebApp.openLink(url);
} else {
window.open(url, "_blank");
}
Expand Down

0 comments on commit 1a2b309

Please sign in to comment.