@droppii-org/chat-sdk 0.1.31 → 0.1.33

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.
@@ -1 +1 @@
1
- {"version":3,"file":"openBizLink.d.ts","sourceRoot":"","sources":["../../src/utils/openBizLink.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,EAAE,GAAG,SAAS,KAAG,OAkBvD,CAAC"}
1
+ {"version":3,"file":"openBizLink.d.ts","sourceRoot":"","sources":["../../src/utils/openBizLink.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,EAAE,GAAG,SAAS,KAAG,OAevD,CAAC"}
@@ -4,11 +4,12 @@ export const openBizLink = (url, t) => {
4
4
  if (!url || typeof window === "undefined")
5
5
  return false;
6
6
  try {
7
- const opened = window.open(normalizeBizLinkUrl(url), "_blank", "noopener,noreferrer");
7
+ const opened = window.open(normalizeBizLinkUrl(url), "_blank");
8
8
  if (!opened) {
9
9
  antdMessage.error(t("link_open_error"));
10
10
  return false;
11
11
  }
12
+ opened.opener = null;
12
13
  return true;
13
14
  }
14
15
  catch (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@droppii-org/chat-sdk",
3
- "version": "0.1.31",
3
+ "version": "0.1.33",
4
4
  "description": "Droppii React Chat SDK",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",