Renamed main

pull/10/head
Yuta Hayashibe 2023-03-25 21:59:22 +09:00
parent 057b423c6e
commit 4d40a4e9e9
1 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ function operate_component(component) {
change_bg(header, is_active);
}
function main() {
function main_enable_checker() {
const area = get_script_area();
if (!area) {
return;
@ -132,9 +132,9 @@ function main() {
}
gradioApp().addEventListener("click", function (ev) {
main();
main_enable_checker();
});
onUiUpdate(function () {
main()
main_enable_checker()
});