mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 04:33:06 +00:00
Update the liveview renderer to the new sledgehammer version
This commit is contained in:
parent
93ee53454f
commit
271b53e866
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ function main() {
|
|||
|
||||
class IPC {
|
||||
constructor(root) {
|
||||
window.interpreter = new JSChannel();
|
||||
window.interpreter.initialize(root);
|
||||
const ws = new WebSocket(WS_ADDR);
|
||||
ws.binaryType = "arraybuffer";
|
||||
|
@ -34,7 +35,7 @@ class IPC {
|
|||
// The first byte tells the shim if this is a binary of text frame
|
||||
if (binaryFrame) {
|
||||
// binary frame
|
||||
run_from_bytes(messageData);
|
||||
window.interpreter.run_from_bytes(messageData);
|
||||
}
|
||||
else {
|
||||
// text frame
|
||||
|
|
Loading…
Reference in a new issue