From 9c94a9e14a36fd23709e34db361328f3042b21ea Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Fri, 29 Sep 2023 14:44:41 +0200 Subject: [PATCH] changed: sms message in a prompt instead of note content --- main.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index d8496ba..ac758e2 100644 --- a/main.js +++ b/main.js @@ -350,7 +350,7 @@ var commands = [ action: inserttodo }, { - hint: "Send by SMS", + hint: "Send an SMS", action: sms, remoteonly: true }, @@ -470,9 +470,10 @@ function decryptstring(str) function sms() { - if (confirm("Send note by SMS?")) + var messsage = prompt("Type your message:"); + if (messsage) { - queryremote({action: "sms", data: currentnote.content.replace(/\n/g, " ")}) + queryremote({action: "sms", data: messsage}) .then(data => { showtemporaryinfo("SMS sent. Result: '" + data.result + "'");