fix for login

This commit is contained in:
sdarbinyan
2026-06-20 14:29:49 +04:00
parent 3208ef2b3b
commit c190421616

View File

@@ -88,7 +88,7 @@ export class TelegramLoginComponent implements OnDestroy {
if (this.isMobileBrowser()) { if (this.isMobileBrowser()) {
this.awaitingTelegramReturn.set(true); this.awaitingTelegramReturn.set(true);
this.launchTelegramApp(webSessionID, url); this.launchTelegramApp(webSessionID);
return; 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') { if (typeof document === 'undefined') {
window.location.assign(fallbackUrl);
return; return;
} }
@@ -200,9 +199,6 @@ export class TelegramLoginComponent implements OnDestroy {
this.mobileFallbackTimeout = setTimeout(() => { this.mobileFallbackTimeout = setTimeout(() => {
this.removeLaunchFrame(); this.removeLaunchFrame();
if (document.visibilityState === 'visible') {
window.location.assign(fallbackUrl);
}
}, 1400); }, 1400);
} }