Update list.component.ts

This commit is contained in:
Matteo Gheza 2022-05-27 18:30:17 +02:00 committed by GitHub
parent 84188f1bab
commit 63086ee05d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -136,7 +136,10 @@ export class ListComponent implements OnInit, OnDestroy {
requestTelegramToken() {
this.api.post("telegram_login_token", {}).then((response) => {
console.log(response);
window.open(response.start_link, "_blank");
const a = document.createElement("a");
a.setAttribute('href', response.start_link);
a.setAttribute('target', '_blank');
a.click();
});
}