diff options
-rw-r--r-- | packages/taler-wallet-embedded/src/wallet-qjs.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/taler-wallet-embedded/src/wallet-qjs.ts b/packages/taler-wallet-embedded/src/wallet-qjs.ts index 4c39e6188..6b5f7707c 100644 --- a/packages/taler-wallet-embedded/src/wallet-qjs.ts +++ b/packages/taler-wallet-embedded/src/wallet-qjs.ts @@ -78,8 +78,7 @@ export interface QjsHttpOptions { } export interface QjsOsLib { - // Not async! - fetchHttp(url: string, options?: QjsHttpOptions): QjsHttpResp; + fetchHttp(url: string, options?: QjsHttpOptions): Promise<QjsHttpResp>; postMessageToHost(s: string): void; setMessageFromHostHandler(h: (s: string) => void): void; rename(oldPath: string, newPath: string): number; @@ -145,7 +144,7 @@ export class NativeHttpLib implements HttpRequestLibrary { data = new ArrayBuffer(0); } } - const res = qjsOs.fetchHttp(url, { + const res = await qjsOs.fetchHttp(url, { method, data, headers, |