zaplocker icon indicating copy to clipboard operation
zaplocker copied to clipboard

Login button broken on Chrome: window.nostr.enable is not a function

Open thebrandonlucas opened this issue 2 years ago • 2 comments

Very cool project, thank you for building this!

I am however unable to test because the login button appears to be broken for me on Chrome browser, although I have Nip-07 extensions Alby and nos2x installed and have tested they're working for other sites.

I'm not yet able to reach the site via Firefox to test it in a different browser.

thebrandonlucas avatar Aug 25 '23 13:08 thebrandonlucas

I had the same issue and isolved it by adding my private nostr key in the setting of the alby web extention.

sepiropht avatar Aug 25 '23 15:08 sepiropht

I don't know what is causing this error. It's happening to multiple people and I can't seem to replicate it. I have Google Chrome and the alby extension installed, and it works as expected for me: I click Log In and the extension pops up and asks me if it can read my pubkey.

A friend of mine also has alby installed (with his private key set) but it does not work for him. He clicks Log In and a popup tells him to install Alby and try again. I was able to discover that, on my friend's device, Alby is not injecting the window.nostr object into the browser, which is what my site uses to detect that Alby is installed. But on my machine, the window.nostr object is there. I've asked for help in the Alby telegram channel and I await further assistance from them.

supertestnet avatar Aug 25 '23 22:08 supertestnet