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/button.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

diff --git a/src/client/widgets/button.vue b/src/client/widgets/button.vue
index db247d36b5..3417181d0c 100644
--- a/src/client/widgets/button.vue
+++ b/src/client/widgets/button.vue
@@ -45,7 +45,8 @@ export default defineComponent({
 	methods: {
 		async run() {
 			const aiscript = new AiScript(createAiScriptEnv({
-				storageKey: 'scratchpad'
+				storageKey: 'widget',
+				token: this.$i?.token,
 			}), {
 				in: (q) => {
 					return new Promise(ok => {
-- 
cgit v1.2.3-freya

