fixed: disable sms in local mode
This commit is contained in:
parent
35bbaa9195
commit
32859a78f4
6
main.js
6
main.js
|
@ -371,6 +371,12 @@ var snippets = [
|
||||||
|
|
||||||
function sms()
|
function sms()
|
||||||
{
|
{
|
||||||
|
if (!isremote())
|
||||||
|
{
|
||||||
|
showtemporaryinfo("SMS is not available in local mode.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
queryremote({action: "sms", data: currentnote.content.replace(/\n/g, " ")})
|
queryremote({action: "sms", data: currentnote.content.replace(/\n/g, " ")})
|
||||||
.then(data =>
|
.then(data =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue