Skip to content

Commit

Permalink
Simplify output code by removing async.
Browse files Browse the repository at this point in the history
  • Loading branch information
wbobeirne committed Nov 17, 2018
1 parent 7f8e89f commit 1422ed6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ import { WebLNProvider } from './provider';
* The methodology here is pretty brittle, so it could use some changes.
*
* TODO: Handle multiple provider registrations?
* TODO: Something more sophistacted than while true loop
*/

export interface GetProviderParameters {
pubkey?: string;
}

export async function requestProvider(_: GetProviderParameters = {}): Promise<WebLNProvider> {
export function requestProvider(_: GetProviderParameters = {}): Promise<WebLNProvider> {
if (typeof window === 'undefined') {
throw new Error('Must be called in a browser context');
}
Expand Down

0 comments on commit 1422ed6

Please sign in to comment.