Skip to content

Commit

Permalink
Trigger events when broadcast message is received
Browse files Browse the repository at this point in the history
  • Loading branch information
esme committed Jan 17, 2025
1 parent 37e75ec commit e15d7d9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions demos/demo-minimal-js/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-use-before-define */
/* eslint-disable no-undef */
import CallingExtensions, { Constants } from "@hubspot/calling-extensions-sdk";
// import CallingExtensions, { Constants } from "../../index";
Expand Down Expand Up @@ -47,10 +48,10 @@ const USER_AVAILABLE = "useravailable";
const USER_UNAVAILABLE = "userunavailable";

const eventHandlers = {
[INCOMING_CALL]: "incomingCall",
[ANSWER_CALL]: "answerCall",
[END_CALL]: "endCall",
[COMPLETE_CALL]: "completeCall",
[INCOMING_CALL]: incomingCall,
[ANSWER_CALL]: answerCall,
[END_CALL]: endCall,
[COMPLETE_CALL]: completeCall,
};

function disableButtons(ids) {
Expand Down

0 comments on commit e15d7d9

Please sign in to comment.