debug alby again... sigh
This commit is contained in:
parent
bb27b1c339
commit
c783b430bf
3 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,7 @@ emojiregex: fake
|
||||||
@curl -sL 'https://raw.githubusercontent.com/mathiasbynens/emoji-test-regex-pattern/main/dist/latest/javascript.txt'
|
@curl -sL 'https://raw.githubusercontent.com/mathiasbynens/emoji-test-regex-pattern/main/dist/latest/javascript.txt'
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
rsync -avzP ./ charon:/www/damus.io/web/
|
rsync -avzP --delete ./ charon:/www/damus.io/web/
|
||||||
|
|
||||||
dist-staging:
|
dist-staging:
|
||||||
rsync -avzP ./ charon:/www/damus.io/web-staging/
|
rsync -avzP ./ charon:/www/damus.io/web-staging/
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script>
|
<script>
|
||||||
const relay = 0; // relay is declared for backwards compatibibility.
|
|
||||||
// This is our main entry.
|
// This is our main entry.
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/API/Window/DOMContentLoaded_event
|
// https://developer.mozilla.org/en-US/docs/Web/API/Window/DOMContentLoaded_event
|
||||||
|
console.log("window.nostr", window.nostr)
|
||||||
addEventListener('DOMContentLoaded', (ev) => {
|
addEventListener('DOMContentLoaded', (ev) => {
|
||||||
// TODO fix race condition where profile doesn't load fast enough.
|
// TODO fix race condition where profile doesn't load fast enough.
|
||||||
damus_web_init();
|
damus_web_init();
|
||||||
|
|
|
@ -1232,6 +1232,7 @@ async function get_pubkey() {
|
||||||
if (pubkey)
|
if (pubkey)
|
||||||
return pubkey
|
return pubkey
|
||||||
|
|
||||||
|
console.log("window.nostr", window.nostr)
|
||||||
if (window.nostr && window.nostr.getPublicKey) {
|
if (window.nostr && window.nostr.getPublicKey) {
|
||||||
const pubkey = await window.nostr.getPublicKey()
|
const pubkey = await window.nostr.getPublicKey()
|
||||||
console.log("got %s pubkey from nos2x", pubkey)
|
console.log("got %s pubkey from nos2x", pubkey)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue