diff --git a/script.js b/script.js index 1b9a443f..03afe844 100644 --- a/script.js +++ b/script.js @@ -7,7 +7,7 @@ function gradioApp() { } function get_uiCurrentTab() { - return gradioApp().querySelector('#tabs button:not(.border-transparent)') + return gradioApp().querySelector('#tabs button.selected') } function get_uiCurrentTabContent() {