boka-human-cliend-v3 0.0.32 → 0.0.34

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.
@@ -5216,7 +5216,9 @@
5216
5216
  },
5217
5217
  src() {
5218
5218
  let { token, product, custType, subCustType, source, terminal = "" } = this;
5219
- return `${this.host}?token=${token}&product=${product}&custType=${custType}&subCustType=${subCustType}&source=${source}&human=1&isIFrame=true&&terminal=${terminal}time=${(/* @__PURE__ */ new Date()).getTime()}`;
5219
+ let { protocol, host, port } = location;
5220
+ let domain = `${protocol}//${host}${port ? ":" + port : ""}`;
5221
+ return `${this.host}?token=${token}&product=${product}&custType=${custType}&subCustType=${subCustType}&source=${source}&human=1&isIFrame=true&terminal=${terminal}&domain=${encodeURIComponent(domain)}&time=${(/* @__PURE__ */ new Date()).getTime()}`;
5220
5222
  }
5221
5223
  },
5222
5224
  data() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boka-human-cliend-v3",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "main": "dist/boka-human-v3.umd.js",
5
5
  "scripts": {
6
6
  "dev": "vite",