This commit is contained in:
Doug Hoyte
2023-09-10 18:47:08 -04:00
parent c69b338402
commit 552e70e3b0
6 changed files with 71 additions and 0 deletions

View File

@ -24,6 +24,11 @@ document.addEventListener('alpine:init', () => {
},
async login() {
if (!window.nostr) {
window.location = "/login";
return;
}
let pubkey = await nostr.getPublicKey();
let response = await fetch(`/u/${pubkey}/metadata.json`);