Browse Source

chore: use ws instead of global

Jonathan Kelley 2 years ago
parent
commit
3c1786b7f1
1 changed files with 1 additions and 1 deletions
  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) => {