refactor: silently drop all moduleCall and response calls received in the bootloader

This commit is contained in:
Derrick Hammer 2023-07-20 12:45:14 -04:00
parent 0eb3209aa2
commit 3543e48c79
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ export async function handleIncomingMessage(event: MessageEvent) {
return;
}
if (["moduleCall", "response"].includes(event.data.method)) {
return;
}
(event.source as WindowProxy).postMessage(
{
nonce: event.data.nonce,