qr-secure-send 1.7.0 → 1.7.1

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.html +13 -4
  2. package/package.json +1 -1
package/index.html CHANGED
@@ -159,7 +159,7 @@
159
159
  <header>
160
160
  <h1>QR Secure Send</h1>
161
161
  <p>Encrypt and transfer secrets via QR code</p>
162
- <p style="font-size:0.7rem;color:#484f58;margin-top:0.2rem">v1.7.0</p>
162
+ <p style="font-size:0.7rem;color:#484f58;margin-top:0.2rem">v1.7.1</p>
163
163
  </header>
164
164
 
165
165
  <div class="tabs">
@@ -1016,7 +1016,7 @@
1016
1016
  // PAYLOAD HELPERS
1017
1017
  // =========================================================================
1018
1018
 
1019
- const APP_VERSION = "1.7.0";
1019
+ const APP_VERSION = "1.7.1";
1020
1020
  const GH_PAGES_URL = "https://degenddy.github.io/qr-secure-send/?v=" + APP_VERSION;
1021
1021
  const METAMASK_DEEP_URL = "https://link.metamask.io/dapp/degenddy.github.io/qr-secure-send/?v=" + APP_VERSION;
1022
1022
 
@@ -1313,6 +1313,15 @@
1313
1313
 
1314
1314
  // Check URL hash for incoming encrypted data (link-based receive flow)
1315
1315
  if (location.hash.startsWith("#QRSEC:") || location.hash.startsWith("#QRSECW:")) {
1316
+ // Wallet mode + no MetaMask → redirect to MetaMask deep link (mobile)
1317
+ if (location.hash.startsWith("#QRSECW:") && typeof window.ethereum === 'undefined') {
1318
+ const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
1319
+ if (isMobile) {
1320
+ window.location.href = METAMASK_DEEP_URL + location.hash;
1321
+ // stop further execution; page will redirect
1322
+ }
1323
+ }
1324
+
1316
1325
  document.querySelectorAll(".tab-btn").forEach(b => b.classList.remove("active"));
1317
1326
  document.querySelectorAll(".panel").forEach(p => p.classList.remove("active"));
1318
1327
  document.querySelector('[data-tab="receive"]').classList.add("active");
@@ -1323,8 +1332,8 @@
1323
1332
  if (location.hash.startsWith("#QRSECW:")) {
1324
1333
  document.getElementById("recv-wallet-section").style.display = "block";
1325
1334
  document.getElementById("link-notice").textContent =
1326
- "Encrypted data received via link. This secret requires wallet authentication. " +
1327
- "Connect your wallet, enter the passphrase, and click Decrypt.";
1335
+ "Encrypted data received via link. This secret requires wallet signing. " +
1336
+ "Connect & sign with your wallet, enter the passphrase (if set), and click Decrypt.";
1328
1337
  }
1329
1338
  }
1330
1339
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qr-secure-send",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Encrypt and transfer secrets via QR code",
5
5
  "keywords": ["qr", "qrcode", "encryption", "password", "secure", "transfer"],
6
6
  "author": "",