fix hide tab bug

main
hyd998877 2023-05-30 15:04:06 +08:00
parent 63abb57647
commit 84a0e759f8
1 changed files with 65 additions and 64 deletions

View File

@ -591,7 +591,7 @@ function show_trans_dialg(to_lan, top, left, title, getPrompt_fun) {
} }
var node = gradioApp().getElementById('auto_language_jsdiv') var node = gradioApp().getElementById('auto_language_jsdiv')
if(!node) return false; if(node){
var session = node var session = node
const modal = document.createElement('div') const modal = document.createElement('div')
var btn_class = gradioApp().getElementById('remove_trans_btn').classList.value var btn_class = gradioApp().getElementById('remove_trans_btn').classList.value
@ -702,6 +702,7 @@ function show_trans_dialg(to_lan, top, left, title, getPrompt_fun) {
}) })
} }
); );
}
trans_config.is_init = true trans_config.is_init = true
return true return true