@ujet/websdk-headless 6.22.0 → 6.25.0
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/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -762,7 +762,7 @@ const Qq = new TextDecoder(), Zq = (r) => {
|
|
|
762
762
|
const s = t.slice(n, n + i);
|
|
763
763
|
return n += i, s;
|
|
764
764
|
}).join("-");
|
|
765
|
-
}, T_e = "prod", iO = "6.
|
|
765
|
+
}, T_e = "prod", iO = "6.25.0", $E = "https://main.api.ujet.co", ri = {
|
|
766
766
|
companyId: "",
|
|
767
767
|
tenant: "",
|
|
768
768
|
trackerId: "",
|
|
@@ -1240,14 +1240,14 @@ class g6 {
|
|
|
1240
1240
|
var l;
|
|
1241
1241
|
let t = e.host;
|
|
1242
1242
|
t || (e.tenant ? t = $E.replace("main.api", e.tenant) : t = $E);
|
|
1243
|
-
const n = e.lang || "en", i = !!((l = e.cobrowse) != null && l.enabled), a = (e.bridge || "https://websdk.ujet.co/v3/bridge.html") + "?6.
|
|
1243
|
+
const n = e.lang || "en", i = !!((l = e.cobrowse) != null && l.enabled), a = (e.bridge || "https://websdk.ujet.co/v3/bridge.html") + "?6.25.0", c = /^https:/.test(a) ? new URL(a).origin : "*", o = ["twilio_chat", "nexmo_chat", "ujet_chat"];
|
|
1244
1244
|
i && o.push("cobrowse"), this.config = {
|
|
1245
1245
|
host: t,
|
|
1246
1246
|
lang: n,
|
|
1247
1247
|
cobrowse: i,
|
|
1248
1248
|
companyId: e.companyId,
|
|
1249
1249
|
location: location.href,
|
|
1250
|
-
version: e.version || "6.
|
|
1250
|
+
version: e.version || "6.25.0",
|
|
1251
1251
|
bridge: a,
|
|
1252
1252
|
bridgeOrigin: c,
|
|
1253
1253
|
modules: o
|