Skip to content

Commit

Permalink
Add call agent to window
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswhilar committed Jul 26, 2023
1 parent 63f31d3 commit 489d2c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Project/src/MakeCall/MakeCall.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export default class MakeCall extends React.Component {
await this.callClient.createTeamsCallAgent(tokenCredential) :
await this.callClient.createCallAgent(tokenCredential, { displayName: userDetails.displayName });

window.callAgent = this.callAgent;
this.callAgent.on('callsUpdated', e => {
console.log(`callsUpdated, added=${e.added}, removed=${e.removed}`);

Expand Down

0 comments on commit 489d2c9

Please sign in to comment.