Commit 0901d119 authored by Prakhar Agarwal's avatar Prakhar Agarwal 🎯
Browse files

fixed msg not sending bug

parent 467dd844
Pipeline #3641 failed with stage
in 0 seconds
......@@ -1197,14 +1197,15 @@ function menu_send(name) {
$("#canvas-option").prop("checked", true);
}
$("#message-modal").modal("show");
$("#send-message-btn").click(function() {
$("#send-message-btn").on("click", function() {
message = $("#message-text").val();
$("#message-text").val("");
$("#message-modal").modal("hide");
if (message != undefined && message.length) {
post("Sending message to Pd: " + message + ";");
pdsend(message);
}
});
if (message != undefined && message.length) {
post("Sending message to Pd: " + message + ";");
pdsend(message);
}
}
// requires nw.js API (Menuitem)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment