qr-secure-send 1.6.2 → 1.6.4

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 +7 -2
  2. package/package.json +1 -1
package/index.html CHANGED
@@ -3,6 +3,9 @@
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
7
+ <meta http-equiv="Pragma" content="no-cache">
8
+ <meta http-equiv="Expires" content="0">
6
9
  <title>QR Secure Send</title>
7
10
  <style>
8
11
  * { box-sizing: border-box; margin: 0; padding: 0; }
@@ -156,7 +159,7 @@
156
159
  <header>
157
160
  <h1>QR Secure Send</h1>
158
161
  <p>Encrypt and transfer secrets via QR code</p>
159
- <p style="font-size:0.7rem;color:#484f58;margin-top:0.2rem">v1.6.2</p>
162
+ <p style="font-size:0.7rem;color:#484f58;margin-top:0.2rem">v1.6.4</p>
160
163
  </header>
161
164
 
162
165
  <div class="tabs">
@@ -1009,6 +1012,7 @@
1009
1012
  // =========================================================================
1010
1013
 
1011
1014
  const GH_PAGES_URL = "https://degenddy.github.io/qr-secure-send/";
1015
+ const METAMASK_DEEP_URL = "https://link.metamask.io/dapp/degenddy.github.io/qr-secure-send/";
1012
1016
 
1013
1017
  function buildKeyInput(passphrase, walletAddress) {
1014
1018
  return walletAddress ? passphrase + ':' + walletAddress.toLowerCase() : passphrase;
@@ -1103,7 +1107,8 @@
1103
1107
  const keyInput = buildKeyInput(passphrase, walletAddress);
1104
1108
  const encrypted = await encryptSecret(secret, keyInput);
1105
1109
  const prefix = useWallet ? "QRSECW:" : "QRSEC:";
1106
- const payload = GH_PAGES_URL + "#" + prefix + encrypted;
1110
+ const baseUrl = useWallet ? METAMASK_DEEP_URL : GH_PAGES_URL;
1111
+ const payload = baseUrl + "#" + prefix + encrypted;
1107
1112
 
1108
1113
  if (payload.length > 2953) {
1109
1114
  errEl.textContent = "Secret is too long for a QR code. Keep it under ~1950 characters.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qr-secure-send",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "Encrypt and transfer secrets via QR code",
5
5
  "keywords": ["qr", "qrcode", "encryption", "password", "secure", "transfer"],
6
6
  "author": "",