damus.io

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

commit c783b430bfdb1e91d89d8209d625d66d41cf303e
parent bb27b1c339384ec266cf89a046d33d00d37fd8e2
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 18 Nov 2022 07:39:16 -0800

debug alby again... sigh

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

diff --git a/web/Makefile b/web/Makefile @@ -9,7 +9,7 @@ emojiregex: fake @curl -sL 'https://raw.githubusercontent.com/mathiasbynens/emoji-test-regex-pattern/main/dist/latest/javascript.txt' dist: - rsync -avzP ./ charon:/www/damus.io/web/ + rsync -avzP --delete ./ charon:/www/damus.io/web/ dist-staging: rsync -avzP ./ charon:/www/damus.io/web-staging/ diff --git a/web/index.html b/web/index.html @@ -16,9 +16,9 @@ </head> <body> <script> - const relay = 0; // relay is declared for backwards compatibibility. // This is our main entry. // https://developer.mozilla.org/en-US/docs/Web/API/Window/DOMContentLoaded_event + console.log("window.nostr", window.nostr) addEventListener('DOMContentLoaded', (ev) => { // TODO fix race condition where profile doesn't load fast enough. damus_web_init(); diff --git a/web/js/damus.js b/web/js/damus.js @@ -1232,6 +1232,7 @@ async function get_pubkey() { if (pubkey) return pubkey + console.log("window.nostr", window.nostr) if (window.nostr && window.nostr.getPublicKey) { const pubkey = await window.nostr.getPublicKey() console.log("got %s pubkey from nos2x", pubkey)