Skip to content

Commit

Permalink
Bubble up errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wbobeirne committed Jun 20, 2019
1 parent 43d44b0 commit 55dbb24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export function requestProvider(_: GetProviderParameters = {}): Promise<WebLNPro
return reject(new MissingProviderError('Your browser has no WebLN provider'));
}

webln.enable().then(() => resolve(webln));
webln.enable()
.then(() => resolve(webln))
.catch(err => reject(err));
});
}

0 comments on commit 55dbb24

Please sign in to comment.