Your bitcoin & nostr companion / from ๐ with ๐งก
alby.isEnabled() allows you to check if the alby provider is enabled without explicitly enabling it through alby.enable() (which may cause a confirmation popup in some providers)
Method
functionisEnabled():Promise<boolean>;
Example
if(typeofwindow.alby !=='undefined'&&window.alby.isEnabled) {constisEnabled=awaitwindow.alby.isEnabled();// do something with the valueconsole.log(isEnabled) }