Skip to content

Commit

Permalink
prevent further stream when reset is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Jun 25, 2024
1 parent ddad524 commit 0ad571e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion themes/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions themes/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
"""
Expand Down

0 comments on commit 0ad571e

Please sign in to comment.