mirror of
https://github.com/Coldcard/push-tx.git
synced 2026-10-22 08:33:24 +00:00
don't assume running on coldcard.com
This commit is contained in:
1 parent
1ed7b38bfb
commit
ee60c24e3c
5 files changed
+25
-23
No files matched your search
@@ -317,6 +317,8 @@ async function run() {
|
||||
detailsArea.innerHTML = '';
|
||||
|
||||
if (!window.location.hash) {
|
||||
const path = window.location.origin + window.location.pathname;
|
||||
|
||||
const msg = `
|
||||
<p><strong>Did you get here by accident?</strong></p>
|
||||
<p>
|
||||
@@ -324,7 +326,7 @@ async function run() {
|
||||
<strong>COLDCARD NFC Push TX feature</strong>. The complete URL should look something like this (but longer):
|
||||
</p>
|
||||
|
||||
<p><code>https://coldcard.com/pushtx#t=AgAAAAMNCxXtp2GVYVhkRXHLMmdZFs4p3kbFK ⋯ ABf&c=uiSVRda-1tw</code></p>
|
||||
<p><code>${path}#t=AgAAAAMNCxXtp2GVYVhkRXHLMmdZFs4p3kbFK ⋯ ABf&c=uiSVRda-1tw</code></p>
|
||||
`;
|
||||
|
||||
messageArea.innerHTML = renderMessage('info', msg);
|
||||
|
||||
Reference in new issue
Block a user