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 {
|
export interface QjsOsLib {
|
||||||
// Not async!
|
fetchHttp(url: string, options?: QjsHttpOptions): Promise<QjsHttpResp>;
|
||||||
fetchHttp(url: string, options?: QjsHttpOptions): QjsHttpResp;
|
|
||||||
postMessageToHost(s: string): void;
|
postMessageToHost(s: string): void;
|
||||||
setMessageFromHostHandler(h: (s: string) => void): void;
|
setMessageFromHostHandler(h: (s: string) => void): void;
|
||||||
rename(oldPath: string, newPath: string): number;
|
rename(oldPath: string, newPath: string): number;
|
||||||
@ -145,7 +144,7 @@ export class NativeHttpLib implements HttpRequestLibrary {
|
|||||||
data = new ArrayBuffer(0);
|
data = new ArrayBuffer(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const res = qjsOs.fetchHttp(url, {
|
const res = await qjsOs.fetchHttp(url, {
|
||||||
method,
|
method,
|
||||||
data,
|
data,
|
||||||
headers,
|
headers,
|
||||||
|
Loading…
Reference in New Issue
Block a user