From 0ad571e6b54907f147c9ac3979d0479f542e71a8 Mon Sep 17 00:00:00 2001 From: binary-husky Date: Tue, 25 Jun 2024 11:43:14 +0000 Subject: [PATCH] prevent further stream when reset is clicked --- themes/common.js | 2 +- themes/theme.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/common.js b/themes/common.js index ade4da98b..11d5909a4 100644 --- a/themes/common.js +++ b/themes/common.js @@ -1694,7 +1694,7 @@ function close_current_pop_up_plugin(){ // 生成高级插件的选择菜单 plugin_init_info_lib = {} function register_plugin_init(key, base64String){ - console.log('x') + // console.log('x') const stringData = atob(base64String); let guiJsonData = JSON.parse(stringData); if (key in plugin_init_info_lib) diff --git a/themes/theme.py b/themes/theme.py index 3dc6732da..e04178710 100644 --- a/themes/theme.py +++ b/themes/theme.py @@ -114,6 +114,8 @@ def from_cookie_str(c): # 详见 themes/common.js js_code_reset = """ (a,b,c)=>{ + let stopButton = document.getElementById("elem_stop"); + stopButton.click(); return reset_conversation(a,b); } """