From cc9bc7703a1d5c56f2bb10dc87a1724b674e6413 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Thu, 11 Feb 2021 16:16:04 +0900
Subject: 
 スクラッチパッド、ボタンウィジェット、AiScriptウィジェットでトークンを設定するように
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/client/widgets/aiscript.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/client/widgets/aiscript.vue')

diff --git a/src/client/widgets/aiscript.vue b/src/client/widgets/aiscript.vue
index 4e788b4b4a..f885db886b 100644
--- a/src/client/widgets/aiscript.vue
+++ b/src/client/widgets/aiscript.vue
@@ -54,7 +54,8 @@ export default defineComponent({
 		async run() {
 			this.logs = [];
 			const aiscript = new AiScript(createAiScriptEnv({
-				storageKey: 'widget'
+				storageKey: 'widget',
+				token: this.$i?.token,
 			}), {
 				in: (q) => {
 					return new Promise(ok => {
-- 
cgit v1.2.3-freya

