We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 613a226 commit 485f773Copy full SHA for 485f773
src/utils/TeamsHelper.ts
@@ -5,9 +5,6 @@
5
* -------------------------------------------------------------------------------------------
6
*/
7
8
-// tslint:disable-next-line: completed-docs
9
-declare var microsoftTeams: any;
10
-
11
/**
12
* A helper class for interacting with the Teams Client SDK.
13
*
@@ -25,7 +22,8 @@ export class TeamsHelper {
25
22
* @memberof TeamsHelper
26
23
27
24
public static get microsoftTeamsLib(): any {
28
- return this._microsoftTeamsLib || microsoftTeams;
+ // tslint:disable-next-line: no-string-literal
+ return this._microsoftTeamsLib || window['microsoftTeams'];
29
}
30
public static set microsoftTeamsLib(value: any) {
31
this._microsoftTeamsLib = value;
0 commit comments