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/dist/index.js CHANGED
@@ -2437,15 +2437,18 @@ function sendInitializeData(wallet, originalWallet) {
2437
2437
  const originalPublicKey = yield originalWallet.getPublicKey();
2438
2438
  const iframe = document.getElementById("satoshi-wallet-iframe");
2439
2439
  if ((iframe == null ? void 0 : iframe.contentWindow) && ((_b = iframe.contentDocument) == null ? void 0 : _b.readyState) === "complete") {
2440
- iframe.contentWindow.postMessage({
2441
- action: "initializeData",
2442
- success: true,
2443
- data: {
2444
- accountId,
2445
- originalAccountId,
2446
- originalPublicKey
2447
- }
2448
- });
2440
+ iframe.contentWindow.postMessage(
2441
+ {
2442
+ action: "initializeData",
2443
+ success: true,
2444
+ data: {
2445
+ accountId,
2446
+ originalAccountId,
2447
+ originalPublicKey
2448
+ }
2449
+ },
2450
+ { targetOrigin: window.location.origin }
2451
+ );
2449
2452
  }
2450
2453
  });
2451
2454
  }
@@ -2885,7 +2888,7 @@ function pollTransactionStatuses(network, hashes) {
2885
2888
 
2886
2889
  // src/index.ts
2887
2890
  var getVersion = () => {
2888
- return "0.0.9";
2891
+ return "0.1.0";
2889
2892
  };
2890
2893
  if (typeof window !== "undefined") {
2891
2894
  window.__PARTICLE_BTC_CONNECT_VERSION = getVersion();