wallet-embedded: fetchHttp is now async
This commit is contained in:
parent
4a781bd0dd
commit
cfe33c8e27
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user