mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-26 22:20:19 +00:00
chore: use ws instead of global
This commit is contained in:
parent
19d0a9af28
commit
3c1786b7f1
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue