Don't try to access target when it doesn't exist
This commit is contained in:
parent
beaafa5d7e
commit
2cced696f5
@ -20,7 +20,9 @@ export default class extends Controller {
|
||||
}
|
||||
|
||||
if (window.nostr) {
|
||||
if (this.hasSetPubkeyTarget) {
|
||||
this.setPubkeyTarget.disabled = false
|
||||
}
|
||||
} else {
|
||||
this.noExtensionTarget.classList.remove("hidden")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user