webbtc.isEnabled() allows you to check if the WebBTC provider is enabled without explicitly enabling it through webbtc.enable() (which may cause a confirmation popup in some providers)
Method
function isEnabled(): Promise<boolean>;
Example
if(typeof window.webbtc !== 'undefined' && window.webbtc.isEnabled) {
const isEnabled = await window.webbtc.isEnabled();
// do something with the value
console.log(isEnabled)
}