bstp-agent-widget 0.2.108 → 0.2.109
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.
package/dist/agent-widget.js
CHANGED
|
@@ -33725,12 +33725,17 @@ function LV(e = {}) {
|
|
|
33725
33725
|
E.current = o, D.current = c;
|
|
33726
33726
|
}), f(() => {
|
|
33727
33727
|
let e = window.SpeechRecognition || window.webkitSpeechRecognition;
|
|
33728
|
-
if (
|
|
33728
|
+
if (typeof e != "function") {
|
|
33729
33729
|
h(!1);
|
|
33730
33730
|
return;
|
|
33731
33731
|
}
|
|
33732
|
-
|
|
33733
|
-
|
|
33732
|
+
let o;
|
|
33733
|
+
try {
|
|
33734
|
+
o = new e(), h(!0);
|
|
33735
|
+
} catch (e) {
|
|
33736
|
+
IV.error("Speech recognition is present but not constructable", { error: e instanceof Error ? e.message : String(e) }), h(!1);
|
|
33737
|
+
return;
|
|
33738
|
+
}
|
|
33734
33739
|
return o.lang = t, o.continuous = n, o.interimResults = r, o.onresult = (e) => {
|
|
33735
33740
|
if (T.current) return;
|
|
33736
33741
|
x.current = !0;
|