diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-09-05 19:44:11 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-09-05 19:44:11 +0900 |
| commit | de1b2223ffd0b3f97e1073f61d0f0699f437294c (patch) | |
| tree | cff79c5885434f8c88582ead9ca8ef21a348dc3a /packages/frontend/src/widgets/WidgetButton.vue | |
| parent | fix #16494 (#16509) (diff) | |
| download | misskey-de1b2223ffd0b3f97e1073f61d0f0699f437294c.tar.gz misskey-de1b2223ffd0b3f97e1073f61d0f0699f437294c.tar.bz2 misskey-de1b2223ffd0b3f97e1073f61d0f0699f437294c.zip | |
enhance(frontend): AiScriptAppウィジェットで構文エラーを検知してもダイアログではなくウィジェット内にエラーを表示するように
Diffstat (limited to 'packages/frontend/src/widgets/WidgetButton.vue')
| -rw-r--r-- | packages/frontend/src/widgets/WidgetButton.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/widgets/WidgetButton.vue b/packages/frontend/src/widgets/WidgetButton.vue index e88a960f87..f8ae03c5fd 100644 --- a/packages/frontend/src/widgets/WidgetButton.vue +++ b/packages/frontend/src/widgets/WidgetButton.vue @@ -52,7 +52,7 @@ const { widgetProps, configure } = useWidgetPropsManager(name, const parser = new Parser(); -const run = async () => { +async function run() { const aiscript = new Interpreter(createAiScriptEnv({ storageKey: 'widget', token: $i?.token, @@ -84,7 +84,7 @@ const run = async () => { text: err instanceof Error ? err.message : String(err), }); } -}; +} defineExpose<WidgetComponentExpose>({ name, |