diff --git a/tools/nodeclient/app.js b/tools/nodeclient/app.js index e301632..1c16854 100644 --- a/tools/nodeclient/app.js +++ b/tools/nodeclient/app.js @@ -52,6 +52,7 @@ axios.post(`${settings.url}/handler.php`, notes.splice(notes.indexOf(note), 1); notes.unshift(note); + console.log("sending data file to server..."); axios.post(`${settings.url}/handler.php`, { action: "push", @@ -63,8 +64,14 @@ axios.post(`${settings.url}/handler.php`, { "Content-type": "application/x-www-form-urlencoded" } + }).then(res => { + console.log("done."); }); } + else + { + console.log("no change."); + } }) rl.close(); });