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