From fa13b0948e74c8eb02991810c8bed02ddac06de2 Mon Sep 17 00:00:00 2001 From: "Frank A. Krueger" Date: Thu, 15 Jun 2017 23:27:07 -0700 Subject: [PATCH] Send new value when element changes --- Ooui/Client.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Ooui/Client.js b/Ooui/Client.js index 5595e9e..735985c 100644 --- a/Ooui/Client.js +++ b/Ooui/Client.js @@ -63,9 +63,12 @@ function msgListen (m) { id: m.id, k: m.k, }; + if (m.k === "changed") { + em.v = node.value; + } const ems = JSON.stringify (em); socket.send (ems); - console.log ("Send event", em); + console.log ("Event", em); }); }