chore: use ws instead of global

This commit is contained in:
Jonathan Kelley 2022-12-22 02:56:33 -05:00
parent 19d0a9af28
commit 3c1786b7f1

View file

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