don't assume running on coldcard.com

This commit is contained in:
siim-m authored and doc-hex committed 2024-06-20 08:24:08 -04:00
1 parent 1ed7b38bfb
commit ee60c24e3c
5 files changed
+25 -23

No files matched your search

+3 -1
View File
@@ -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);