According to the spec at webln.guide the enable function has a return type of void
boltz.exchange has 2 instances calling window.webln.enable() and both are expecting it to return an object with a enabled field that must be truthy in order for webLN to proceed and work properly
Seems Alby as a WebLN provider is also deviating from this spec since the webln object injected by Alby has an enable function that does not have a void return type, which is probably why the logic below was written this way
Not sure if the spec should change or this implementation should change but WebLN providers who implement enable according to the spec will not be compatible with boltz.exchange due to this inconsistency
According to the spec at webln.guide the enable function has a return type of
void
boltz.exchange has 2 instances calling
window.webln.enable()
and both are expecting it to return an object with aenabled
field that must be truthy in order for webLN to proceed and work properlySeems Alby as a WebLN provider is also deviating from this spec since the webln object injected by Alby has an
enable
function that does not have avoid
return type, which is probably why the logic below was written this wayNot sure if the spec should change or this implementation should change but WebLN providers who implement
enable
according to the spec will not be compatible with boltz.exchange due to this inconsistency