damus.io

damus.io website
git clone git://jb55.com/damus.io
Log | Files | Refs | README | LICENSE

commit 9fb8be6afd4c2146504e99a11c6a09581ababd37
parent c783b430bfdb1e91d89d8209d625d66d41cf303e
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 18 Nov 2022 07:43:47 -0800

nos2x: call handle_pubkey

Diffstat:
Mweb/index.html | 2+-
Mweb/js/damus.js | 3++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/web/index.html b/web/index.html @@ -12,7 +12,7 @@ <script defer src="js/noble-secp256k1.js?v=1"></script> <script defer src="js/bech32.js?v=1"></script> <script defer src="js/nostr.js?v=6"></script> - <script defer src="js/damus.js?v=87"></script> + <script defer src="js/damus.js?v=88"></script> </head> <body> <script> diff --git a/web/js/damus.js b/web/js/damus.js @@ -1234,9 +1234,10 @@ async function get_pubkey() { console.log("window.nostr", window.nostr) if (window.nostr && window.nostr.getPublicKey) { + console.log("calling window.nostr.getPublicKey()...") const pubkey = await window.nostr.getPublicKey() console.log("got %s pubkey from nos2x", pubkey) - return pubkey + return handle_pubkey(pubkey) } pubkey = prompt("Enter pubkey (hex or npub)")