btc-wallet 0.0.9 → 0.1.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/esm/index.js CHANGED
@@ -2396,15 +2396,18 @@ function sendInitializeData(wallet, originalWallet) {
2396
2396
  const originalPublicKey = yield originalWallet.getPublicKey();
2397
2397
  const iframe = document.getElementById("satoshi-wallet-iframe");
2398
2398
  if ((iframe == null ? void 0 : iframe.contentWindow) && ((_b = iframe.contentDocument) == null ? void 0 : _b.readyState) === "complete") {
2399
- iframe.contentWindow.postMessage({
2400
- action: "initializeData",
2401
- success: true,
2402
- data: {
2403
- accountId,
2404
- originalAccountId,
2405
- originalPublicKey
2406
- }
2407
- });
2399
+ iframe.contentWindow.postMessage(
2400
+ {
2401
+ action: "initializeData",
2402
+ success: true,
2403
+ data: {
2404
+ accountId,
2405
+ originalAccountId,
2406
+ originalPublicKey
2407
+ }
2408
+ },
2409
+ { targetOrigin: window.location.origin }
2410
+ );
2408
2411
  }
2409
2412
  });
2410
2413
  }
@@ -2844,7 +2847,7 @@ function pollTransactionStatuses(network, hashes) {
2844
2847
 
2845
2848
  // src/index.ts
2846
2849
  var getVersion = () => {
2847
- return "0.0.9";
2850
+ return "0.1.0";
2848
2851
  };
2849
2852
  if (typeof window !== "undefined") {
2850
2853
  window.__PARTICLE_BTC_CONNECT_VERSION = getVersion();