hanc-webrtc-widgets 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17084,7 +17084,7 @@ class Po extends EventTarget {
|
|
|
17084
17084
|
this._serviceUrl = e;
|
|
17085
17085
|
}
|
|
17086
17086
|
get serviceUrl() {
|
|
17087
|
-
return this._serviceUrl ?? "https://voice.
|
|
17087
|
+
return this._serviceUrl ?? "https://voice.hanc.ai";
|
|
17088
17088
|
}
|
|
17089
17089
|
get status() {
|
|
17090
17090
|
return this.callStatus;
|
|
@@ -17352,11 +17352,13 @@ let Je = class extends gt {
|
|
|
17352
17352
|
);
|
|
17353
17353
|
break;
|
|
17354
17354
|
case "disconnected":
|
|
17355
|
-
case "error":
|
|
17356
17355
|
this.callStatus = "idle", this.dispatchEvent(
|
|
17357
17356
|
new Event("call-end", { bubbles: !0, composed: !0 })
|
|
17358
17357
|
);
|
|
17359
17358
|
break;
|
|
17359
|
+
case "error":
|
|
17360
|
+
this.callStatus = "idle";
|
|
17361
|
+
break;
|
|
17360
17362
|
}
|
|
17361
17363
|
}, this.toggleCall = async () => {
|
|
17362
17364
|
if (!this.agentId) return new Error("Agent ID is required to make a call.");
|
|
@@ -17612,11 +17614,13 @@ let we = class extends gt {
|
|
|
17612
17614
|
);
|
|
17613
17615
|
break;
|
|
17614
17616
|
case "disconnected":
|
|
17615
|
-
case "error":
|
|
17616
17617
|
this.callStatus = "idle", this.dispatchEvent(
|
|
17617
17618
|
new Event("call-end", { bubbles: !0, composed: !0 })
|
|
17618
17619
|
);
|
|
17619
17620
|
break;
|
|
17621
|
+
case "error":
|
|
17622
|
+
this.callStatus = "idle";
|
|
17623
|
+
break;
|
|
17620
17624
|
}
|
|
17621
17625
|
}, this.toggleCall = async () => {
|
|
17622
17626
|
if (!this.agentId) return new Error("Agent ID is required to make a call.");
|