btc-wallet 0.5.61-beta → 0.5.62-beta

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
@@ -4455,7 +4455,6 @@ function setupWalletButton({
4455
4455
  btcWallet,
4456
4456
  walletUrl
4457
4457
  }) {
4458
- console.log(`setupWalletButton ${walletUrl || ""}`);
4459
4458
  if (document.getElementById("satoshi-wallet-button")) {
4460
4459
  return;
4461
4460
  }
@@ -4490,7 +4489,7 @@ function createFloatingButtonWithIframe({
4490
4489
  var _a;
4491
4490
  const button = document.createElement("img");
4492
4491
  button.id = "satoshi-wallet-button";
4493
- const isIframeVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : true;
4492
+ const isIframeVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : !isMobile();
4494
4493
  button.src = isIframeVisible ? closeImageUrl : openImageUrl;
4495
4494
  iframe.style.display = isIframeVisible ? "block" : "none";
4496
4495
  const windowWidth = window.innerWidth;
@@ -4688,7 +4687,7 @@ function createIframe({
4688
4687
  iframe.id = "satoshi-wallet-iframe";
4689
4688
  iframe.allow = "clipboard-read; clipboard-write";
4690
4689
  iframe.src = iframeUrl;
4691
- const isVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : true;
4690
+ const isVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : !isMobile();
4692
4691
  Object.assign(iframe.style, __spreadValues({
4693
4692
  position: "fixed",
4694
4693
  bottom: "90px",
@@ -5230,7 +5229,7 @@ function getGroup(state) {
5230
5229
 
5231
5230
  // src/index.ts
5232
5231
  var getVersion = () => {
5233
- return "0.5.61-beta";
5232
+ return "0.5.62-beta";
5234
5233
  };
5235
5234
  if (typeof window !== "undefined") {
5236
5235
  window.__BTC_WALLET_VERSION = getVersion();