prevent further stream when reset is clicked

This commit is contained in:
binary-husky
2024-06-25 11:43:14 +00:00
parent ddad5247fc
commit 0ad571e6b5
2 changed files with 3 additions and 1 deletions

View File

@@ -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)

View File

@@ -114,6 +114,8 @@ js_code_for_persistent_cookie_init = """(web_cookie_cache, cookie) => {
# 详见 themes/common.js
js_code_reset = """
(a,b,c)=>{
let stopButton = document.getElementById("elem_stop");
stopButton.click();
return reset_conversation(a,b);
}
"""