๐Ÿ†•isEnabled

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

function isEnabled(): Promise<boolean>;

Example

if(typeof window.alby !== 'undefined' && window.alby.isEnabled) {
    const isEnabled = await window.alby.isEnabled();
    // do something with the value
    console.log(isEnabled)
  }

Demo

Last updated

Logo

Your bitcoin & nostr companion / from ๐Ÿ with ๐Ÿงก