diff --git a/src/app/components/telegram-login/telegram-login.component.ts b/src/app/components/telegram-login/telegram-login.component.ts index adc34bb..5b18957 100644 --- a/src/app/components/telegram-login/telegram-login.component.ts +++ b/src/app/components/telegram-login/telegram-login.component.ts @@ -88,7 +88,7 @@ export class TelegramLoginComponent implements OnDestroy { if (this.isMobileBrowser()) { this.awaitingTelegramReturn.set(true); - this.launchTelegramApp(webSessionID, url); + this.launchTelegramApp(webSessionID); return; } @@ -183,9 +183,8 @@ export class TelegramLoginComponent implements OnDestroy { }); } - private launchTelegramApp(webSessionID: string, fallbackUrl: string): void { + private launchTelegramApp(webSessionID: string): void { if (typeof document === 'undefined') { - window.location.assign(fallbackUrl); return; } @@ -200,9 +199,6 @@ export class TelegramLoginComponent implements OnDestroy { this.mobileFallbackTimeout = setTimeout(() => { this.removeLaunchFrame(); - if (document.visibilityState === 'visible') { - window.location.assign(fallbackUrl); - } }, 1400); }