fix for login
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user