ソースを参照

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) => {