qr-secure-send 1.6.2 → 1.6.3
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/index.html +4 -2
- package/package.json +1 -1
package/index.html
CHANGED
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
<header>
|
|
157
157
|
<h1>QR Secure Send</h1>
|
|
158
158
|
<p>Encrypt and transfer secrets via QR code</p>
|
|
159
|
-
<p style="font-size:0.7rem;color:#484f58;margin-top:0.2rem">v1.6.
|
|
159
|
+
<p style="font-size:0.7rem;color:#484f58;margin-top:0.2rem">v1.6.3</p>
|
|
160
160
|
</header>
|
|
161
161
|
|
|
162
162
|
<div class="tabs">
|
|
@@ -1009,6 +1009,7 @@
|
|
|
1009
1009
|
// =========================================================================
|
|
1010
1010
|
|
|
1011
1011
|
const GH_PAGES_URL = "https://degenddy.github.io/qr-secure-send/";
|
|
1012
|
+
const METAMASK_DEEP_URL = "https://link.metamask.io/dapp/degenddy.github.io/qr-secure-send/";
|
|
1012
1013
|
|
|
1013
1014
|
function buildKeyInput(passphrase, walletAddress) {
|
|
1014
1015
|
return walletAddress ? passphrase + ':' + walletAddress.toLowerCase() : passphrase;
|
|
@@ -1103,7 +1104,8 @@
|
|
|
1103
1104
|
const keyInput = buildKeyInput(passphrase, walletAddress);
|
|
1104
1105
|
const encrypted = await encryptSecret(secret, keyInput);
|
|
1105
1106
|
const prefix = useWallet ? "QRSECW:" : "QRSEC:";
|
|
1106
|
-
const
|
|
1107
|
+
const baseUrl = useWallet ? METAMASK_DEEP_URL : GH_PAGES_URL;
|
|
1108
|
+
const payload = baseUrl + "#" + prefix + encrypted;
|
|
1107
1109
|
|
|
1108
1110
|
if (payload.length > 2953) {
|
|
1109
1111
|
errEl.textContent = "Secret is too long for a QR code. Keep it under ~1950 characters.";
|