Skip to content
Snippets Groups Projects
Commit 5f3640c7 authored by syuilo's avatar syuilo
Browse files

fix(client): validate input response in aiscript

parent d65e5f67
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,11 @@ async function run() {
os.inputText({
title: q,
}).then(({ canceled, result: a }) => {
ok(a);
if (canceled) {
ok('');
} else {
ok(a);
}
});
});
},
......
......@@ -86,7 +86,11 @@ async function run() {
os.inputText({
title: q,
}).then(({ canceled, result: a }) => {
ok(a);
if (canceled) {
ok('');
} else {
ok(a);
}
});
});
},
......
......@@ -20,7 +20,11 @@ export function install(plugin) {
inputText({
title: q,
}).then(({ canceled, result: a }) => {
ok(a);
if (canceled) {
ok('');
} else {
ok(a);
}
});
});
},
......
......@@ -72,7 +72,11 @@ const run = async () => {
os.inputText({
title: q,
}).then(({ canceled, result: a }) => {
ok(a);
if (canceled) {
ok('');
} else {
ok(a);
}
});
});
},
......
......@@ -67,7 +67,11 @@ async function run() {
os.inputText({
title: q,
}).then(({ canceled, result: a }) => {
ok(a);
if (canceled) {
ok('');
} else {
ok(a);
}
});
});
},
......
......@@ -60,7 +60,11 @@ const run = async () => {
os.inputText({
title: q,
}).then(({ canceled, result: a }) => {
ok(a);
if (canceled) {
ok('');
} else {
ok(a);
}
});
});
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment