Skip to content

Commit 485f773

Browse files
Adjusted access of microsoftTeams global var (#365)
1 parent 613a226 commit 485f773

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/utils/TeamsHelper.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
* -------------------------------------------------------------------------------------------
66
*/
77

8-
// tslint:disable-next-line: completed-docs
9-
declare var microsoftTeams: any;
10-
118
/**
129
* A helper class for interacting with the Teams Client SDK.
1310
*
@@ -25,7 +22,8 @@ export class TeamsHelper {
2522
* @memberof TeamsHelper
2623
*/
2724
public static get microsoftTeamsLib(): any {
28-
return this._microsoftTeamsLib || microsoftTeams;
25+
// tslint:disable-next-line: no-string-literal
26+
return this._microsoftTeamsLib || window['microsoftTeams'];
2927
}
3028
public static set microsoftTeamsLib(value: any) {
3129
this._microsoftTeamsLib = value;

0 commit comments

Comments
 (0)