diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-08-06 13:32:59 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-08-06 13:32:59 +0900 |
| commit | 998beeae59bbe9c272e3248b29b89a07259a3624 (patch) | |
| tree | 4b209b8b18b0aac8d94afa906b976e1d30f5c96d /packages/frontend/src/plugin.ts | |
| parent | 🎨 (diff) | |
| download | misskey-998beeae59bbe9c272e3248b29b89a07259a3624.tar.gz misskey-998beeae59bbe9c272e3248b29b89a07259a3624.tar.bz2 misskey-998beeae59bbe9c272e3248b29b89a07259a3624.zip | |
feat(frontend): AiScriptを1.0に更新
Close #16277
Diffstat (limited to 'packages/frontend/src/plugin.ts')
| -rw-r--r-- | packages/frontend/src/plugin.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/frontend/src/plugin.ts b/packages/frontend/src/plugin.ts index 5610ae7095..d47c6cd0e5 100644 --- a/packages/frontend/src/plugin.ts +++ b/packages/frontend/src/plugin.ts @@ -7,15 +7,15 @@ import { ref, defineAsyncComponent } from 'vue'; import { Interpreter, Parser, utils, values } from '@syuilo/aiscript'; import { compareVersions } from 'compare-versions'; import { isSafeMode } from '@@/js/config.js'; -import { genId } from '@/utility/id.js'; import * as Misskey from 'misskey-js'; +import type { FormWithDefault } from '@/utility/form.js'; +import { genId } from '@/utility/id.js'; import { aiScriptReadline, createAiScriptEnv } from '@/aiscript/api.js'; import { store } from '@/store.js'; import * as os from '@/os.js'; import { misskeyApi } from '@/utility/misskey-api.js'; import { i18n } from '@/i18n.js'; import { prefer } from '@/preferences.js'; -import type { FormWithDefault } from '@/utility/form.js'; export type Plugin = { installId: string; @@ -394,8 +394,8 @@ function createPluginEnv(opts: { plugin: Plugin; storageKey: string }): Record<s 'Plugin:register:note_view_interruptor': values.FN_NATIVE(([handler]) => { utils.assertFunction(handler); addPluginHandler(id, 'note_view_interruptor', { - handler: withContext(ctx => async (note) => { - return utils.valToJs(await ctx.execFn(handler, [utils.jsToVal(note)])); + handler: withContext(ctx => (note) => { + return utils.valToJs(ctx.execFnSync(handler, [utils.jsToVal(note)])); }), }); }), |