fix: use FROM_SW
This commit is contained in:
parent
c2be4fe886
commit
ca15414444
|
@ -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 },
|
||||
|
|
Loading…
Reference in New Issue