From d51ebe91ba4e28d078f750a156a2100b92711fe8 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 11 Sep 2023 08:40:45 -0400 Subject: [PATCH] fix: use FROM_SW --- src/kernel/queries.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/queries.ts b/src/kernel/queries.ts index b5fd845..318a9ac 100644 --- a/src/kernel/queries.ts +++ b/src/kernel/queries.ts @@ -148,7 +148,7 @@ function handleMessage(event: MessageEvent) { return; } } - if (event.source === serviceWorker) { + if (FROM_SW) { if (["moduleCall", "queryUpdate", "response"].includes(event.data.method)) { kernelIframe?.contentWindow?.postMessage( { ...event.data, sw: true },