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/esm/index.js CHANGED
@@ -4385,7 +4385,6 @@ function setupWalletButton({
4385
4385
  btcWallet,
4386
4386
  walletUrl
4387
4387
  }) {
4388
- console.log(`setupWalletButton ${walletUrl || ""}`);
4389
4388
  if (document.getElementById("satoshi-wallet-button")) {
4390
4389
  return;
4391
4390
  }
@@ -4420,7 +4419,7 @@ function createFloatingButtonWithIframe({
4420
4419
  var _a;
4421
4420
  const button = document.createElement("img");
4422
4421
  button.id = "satoshi-wallet-button";
4423
- const isIframeVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : true;
4422
+ const isIframeVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : !isMobile();
4424
4423
  button.src = isIframeVisible ? closeImageUrl : openImageUrl;
4425
4424
  iframe.style.display = isIframeVisible ? "block" : "none";
4426
4425
  const windowWidth = window.innerWidth;
@@ -4618,7 +4617,7 @@ function createIframe({
4618
4617
  iframe.id = "satoshi-wallet-iframe";
4619
4618
  iframe.allow = "clipboard-read; clipboard-write";
4620
4619
  iframe.src = iframeUrl;
4621
- const isVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : true;
4620
+ const isVisible = (_a = storage4 == null ? void 0 : storage4.get("visible")) != null ? _a : !isMobile();
4622
4621
  Object.assign(iframe.style, __spreadValues({
4623
4622
  position: "fixed",
4624
4623
  bottom: "90px",
@@ -5162,7 +5161,7 @@ function getGroup(state) {
5162
5161
 
5163
5162
  // src/index.ts
5164
5163
  var getVersion = () => {
5165
- return "0.5.61-beta";
5164
+ return "0.5.62-beta";
5166
5165
  };
5167
5166
  if (typeof window !== "undefined") {
5168
5167
  window.__BTC_WALLET_VERSION = getVersion();