@ikonai/sdk 1.0.10 → 1.0.11

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.
Files changed (2) hide show
  1. package/index.js +6 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -7420,7 +7420,12 @@ class Wl {
7420
7420
  T.error("Failed to connect with external connect URL:", n), this.config.onError?.(n instanceof Error ? n : new Error(String(n))), this.setState("offlineError");
7421
7421
  }));
7422
7422
  };
7423
- return window.addEventListener("message", e), T.debug("External connect URL listener registered"), () => {
7423
+ if (window.addEventListener("message", e), T.debug("External connect URL listener registered"), window.parent && window.parent !== window)
7424
+ try {
7425
+ window.parent.postMessage({ type: "IKON_CLIENT_READY_FOR_CONNECT_URL" }, "*"), T.debug("Posted IKON_CLIENT_READY_FOR_CONNECT_URL to parent window");
7426
+ } catch {
7427
+ }
7428
+ return () => {
7424
7429
  window.removeEventListener("message", e), T.debug("External connect URL listener removed");
7425
7430
  };
7426
7431
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonai/sdk",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",