From c190421616b4512674b5c42b23dfb8ca74a48202 Mon Sep 17 00:00:00 2001 From: sdarbinyan Date: Sat, 20 Jun 2026 14:29:49 +0400 Subject: [PATCH] fix for login --- .../components/telegram-login/telegram-login.component.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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); }