working proper when disabled

This commit is contained in:
counterweight 2025-02-19 14:46:03 +01:00
parent ff707c7a50
commit 2942c3036b
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
3 changed files with 15 additions and 4 deletions

View file

@ -1,7 +1,7 @@
window.onload = function () {
if (!window.nostr) {
console.log('Nostr extension not present');
document.querySelector('#nostr-signup').disabled = true;
document.querySelector('#nostr-signup-button').disabled = true;
document.querySelector('#no-extension-nudges').style.display = 'block';
} else {
console.log('Nostr extension present');