diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-05 20:29:10 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-05 20:29:10 +0900 |
| commit | 5f3640c7fd88a98d3c278e17d4bd91b836962395 (patch) | |
| tree | ac3bbb71a2537ffd7f234175773e572397aaea6f /packages/frontend/src/plugin.ts | |
| parent | 単なるラッキーの獲得確立を調整 (diff) | |
| download | misskey-5f3640c7fd88a98d3c278e17d4bd91b836962395.tar.gz misskey-5f3640c7fd88a98d3c278e17d4bd91b836962395.tar.bz2 misskey-5f3640c7fd88a98d3c278e17d4bd91b836962395.zip | |
fix(client): validate input response in aiscript
Diffstat (limited to 'packages/frontend/src/plugin.ts')
| -rw-r--r-- | packages/frontend/src/plugin.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/frontend/src/plugin.ts b/packages/frontend/src/plugin.ts index c19fe2b08d..17eb99be22 100644 --- a/packages/frontend/src/plugin.ts +++ b/packages/frontend/src/plugin.ts @@ -20,7 +20,11 @@ export function install(plugin) { inputText({ title: q, }).then(({ canceled, result: a }) => { - ok(a); + if (canceled) { + ok(''); + } else { + ok(a); + } }); }); }, |