don't assume running on coldcard.com

This commit is contained in:
siim-m
2024-06-20 11:00:24 +03:00
committed by doc-hex
parent 1ed7b38bfb
commit ee60c24e3c
5 changed files with 25 additions and 23 deletions

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);