소스 검색

chore: use ws instead of global

Jonathan Kelley 2 년 전
부모
커밋
3c1786b7f1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/liveview/src/main.js

+ 1 - 1
packages/liveview/src/main.js

@@ -13,7 +13,7 @@ class IPC {
     let ws = new WebSocket(WS_ADDR);
 
     ws.onopen = () => {
-      window.ipc.postMessage(serializeIpcMessage("initialize"));
+      ws.send(serializeIpcMessage("initialize"));
     };
 
     ws.onerror = (err) => {