From 7746f76ab9d5497f705bfcd54d1f402cb2fe834a Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 1 Aug 2020 12:04:30 +0900 Subject: [PATCH] refactor --- src/client/scripts/aiscript/api.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/scripts/aiscript/api.ts b/src/client/scripts/aiscript/api.ts index d9f311bde..7e3a66887 100644 --- a/src/client/scripts/aiscript/api.ts +++ b/src/client/scripts/aiscript/api.ts @@ -1,6 +1,7 @@ import { utils, values } from '@syuilo/aiscript'; import { jsToVal } from '@syuilo/aiscript/built/interpreter/util'; +// TODO: vue3に移行した折にはvmを渡す必要は無くなるはず export function createAiScriptEnv(vm, opts) { let apiRequests = 0; return { @@ -42,6 +43,7 @@ export function createAiScriptEnv(vm, opts) { }; } +// TODO: vue3に移行した折にはvmを渡す必要は無くなるはず export function createPluginEnv(vm, opts) { const config = new Map(); for (const [k, v] of Object.entries(opts.plugin.config || {})) {