Skip to content

Commit

Permalink
adding a link to njump.me to npub html
Browse files Browse the repository at this point in the history
  • Loading branch information
K committed Jul 23, 2024
1 parent 95bee78 commit 0b4f1c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ export const startup = async () => {
const nsecPrivateKey = await getNsecPrivateKey();

const publicKeyCode = globalThis.document.getElementById("npubPublicKey")!;
publicKeyCode.innerText = npubPublicKey;
const link = document.createElement("a");
link.href = `https://njump.me/${npubPublicKey}`;
link.target = "_blank";
link.innerText = npubPublicKey;
publicKeyCode.appendChild(link);
const nsecPrivateKeyCode =
globalThis.document.getElementById("nsecPrivateKey")!;
nsecPrivateKeyCode.innerText = nsecPrivateKey;
Expand Down

0 comments on commit 0b4f1c8

Please sign in to comment.