@streamoji/avatar-widget 0.1.1 → 0.2.1

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.
@@ -520,7 +520,7 @@ const zt = ({ token: d, agentToken: y, onNavigationRequested: v } = {}) => {
520
520
  }
521
521
  if (e.navigation != null) {
522
522
  const n = String(e.navigation).trim();
523
- n !== "" && (v ? v(n) : window.location.href = n);
523
+ n !== "" && (v ? v(n) : window.open(n, "_blank"));
524
524
  }
525
525
  const i = e.ask_for || e.lead_capture?.ask_for, s = i ? String(i).trim().toLowerCase() : "", a = s === "none" || s === "<none>";
526
526
  if (i && !a) {
@@ -849,8 +849,11 @@ const zt = ({ token: d, agentToken: y, onNavigationRequested: v } = {}) => {
849
849
  H("[CHAT] Sending payload:", n);
850
850
  const u = await fetch(i, {
851
851
  method: "POST",
852
- headers: { "Content-Type": "application/json" },
853
- body: JSON.stringify(n)
852
+ headers: {
853
+ "Content-Type": "application/json"
854
+ },
855
+ body: JSON.stringify(n),
856
+ cache: "default"
854
857
  });
855
858
  if (!u.ok)
856
859
  throw new Error("Agent request failed");