Skip to content

Commit e19d340

Browse files
OGcanviznmetulev
authored andcommitted
Fix Person-Card mailto link blocked in iframe. (#201)
1 parent 03ef07a commit e19d340

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/mgt-person-card/mgt-person-card.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ export class MgtPersonCard extends MgtTemplatedComponent {
324324
phone = (user as MicrosoftGraph.User).businessPhones[0];
325325
}
326326
e.stopPropagation();
327-
window.location.assign('tel:' + phone);
327+
window.open('tel:' + phone, '_blank');
328328
}
329329

330330
private _emailUser(e: Event) {
@@ -335,7 +335,7 @@ export class MgtPersonCard extends MgtTemplatedComponent {
335335
email = getEmailFromGraphEntity(user);
336336
}
337337
e.stopPropagation();
338-
window.location.assign('mailto:' + email);
338+
window.open('mailto:' + email, '_blank');
339339
}
340340

341341
private _chatUser(e: Event) {
@@ -346,7 +346,7 @@ export class MgtPersonCard extends MgtTemplatedComponent {
346346
chat = (user as MicrosoftGraph.User).mailNickname;
347347
}
348348
e.stopPropagation();
349-
window.location.assign('sip:' + chat);
349+
window.open('sip:' + chat, '_blank');
350350
}
351351

352352
private async loadData() {

0 commit comments

Comments
 (0)