Skip to content

Commit 1422ed6

Browse files
committed
Simplify output code by removing async.
1 parent 7f8e89f commit 1422ed6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ import { WebLNProvider } from './provider';
55
* The methodology here is pretty brittle, so it could use some changes.
66
*
77
* TODO: Handle multiple provider registrations?
8-
* TODO: Something more sophistacted than while true loop
98
*/
109

1110
export interface GetProviderParameters {
1211
pubkey?: string;
1312
}
1413

15-
export async function requestProvider(_: GetProviderParameters = {}): Promise<WebLNProvider> {
14+
export function requestProvider(_: GetProviderParameters = {}): Promise<WebLNProvider> {
1615
if (typeof window === 'undefined') {
1716
throw new Error('Must be called in a browser context');
1817
}

0 commit comments

Comments
 (0)