πwebln.isEnabled()
Method
function isEnabled(): Promise<boolean>;if(typeof window.webln !== 'undefined' && window.webln.isEnabled) {
const isEnabled = await window.webln.isEnabled();
// do something with the value
console.log(isEnabled)
}Demo
Last updated
Was this helpful?