Skip to content

Commit 7d63c11

Browse files
authored
Update overview.md to include "TeamsModern" option (SharePoint#9317)
Added the "teamsmodern" value for host.name to include the new Microsoft Teams client option.
1 parent 0ee8e59 commit 7d63c11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/spfx/office/overview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ Use the SPFx's `context` property on the web part's class and the Microsoft Team
3939
if (!!this.context.sdks.microsoftTeams) {
4040
const teamsContext = await this.context.sdks.microsoftTeams.teamsJs.app.getContext();
4141
switch (teamsContext.app.host.name.toLowerCase()) {
42-
case 'teams':
42+
case 'teams': // this is the host name for the "classic" Teams client
43+
case 'teamsmodern': // this is the host name for the "new" Teams client
4344
// RUNNING IN MICROSOFT TEAMS
4445
case 'office':
4546
// RUNNING IN OFFICE / OFFICE.COM

0 commit comments

Comments
 (0)