fix: use FROM_SW
This commit is contained in:
parent
a54565ecd0
commit
d51ebe91ba
|
@ -148,7 +148,7 @@ function handleMessage(event: MessageEvent) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (event.source === serviceWorker) {
|
if (FROM_SW) {
|
||||||
if (["moduleCall", "queryUpdate", "response"].includes(event.data.method)) {
|
if (["moduleCall", "queryUpdate", "response"].includes(event.data.method)) {
|
||||||
kernelIframe?.contentWindow?.postMessage(
|
kernelIframe?.contentWindow?.postMessage(
|
||||||
{ ...event.data, sw: true },
|
{ ...event.data, sw: true },
|
||||||
|
|
Loading…
Reference in New Issue