fix: need to pass nonce with query
This commit is contained in:
parent
9244312141
commit
6fb7486368
|
@ -692,7 +692,7 @@ function newBootloaderQuery(method: string, data: any): Promise<any> {
|
||||||
let nonce = nextNonce();
|
let nonce = nextNonce();
|
||||||
queries[nonce] = { resolve: receiveResponse };
|
queries[nonce] = { resolve: receiveResponse };
|
||||||
getKernelIframe().contentWindow?.postMessage(
|
getKernelIframe().contentWindow?.postMessage(
|
||||||
{ method, data },
|
{ method, data, nonce },
|
||||||
kernelOrigin,
|
kernelOrigin,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue