chore: use ws instead of global
This commit is contained in:
1 parent
19d0a9af28
commit
3c1786b7f1
1 file changed
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user