1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-20 09:25:33 +02:00

enhance(frontend): AiScriptAppウィジェットで構文エラーを検知してもダイアログではなくウィジェット内にエラーを表示するように

This commit is contained in:
syuilo
2025-09-05 19:44:11 +09:00
parent 9b565728e7
commit de1b2223ff
3 changed files with 12 additions and 10 deletions

View File

@@ -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,