diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-03-20 13:09:36 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-03-20 13:09:36 +0000 |
commit | 8ea8e712c43e493a9c96dcec7dfbc036a8630c97 (patch) | |
tree | d546b3457cdd9bfa91252f8416e6b8ccb1791dcf /javascript/ui.js | |
parent | 6a04a7f20fcc4a992ae017b06723e9ceffe17b37 (diff) | |
download | stable-diffusion-webui-gfx803-8ea8e712c43e493a9c96dcec7dfbc036a8630c97.tar.gz stable-diffusion-webui-gfx803-8ea8e712c43e493a9c96dcec7dfbc036a8630c97.tar.bz2 stable-diffusion-webui-gfx803-8ea8e712c43e493a9c96dcec7dfbc036a8630c97.zip |
initial gradio 3.22 support
Diffstat (limited to 'javascript/ui.js')
-rw-r--r-- | javascript/ui.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/javascript/ui.js b/javascript/ui.js index b7a8268a..fcaf5608 100644 --- a/javascript/ui.js +++ b/javascript/ui.js @@ -86,7 +86,7 @@ function get_tab_index(tabId){ var res = 0 gradioApp().getElementById(tabId).querySelector('div').querySelectorAll('button').forEach(function(button, i){ - if(button.className.indexOf('bg-white') != -1) + if(button.className.indexOf('selected') != -1) res = i }) @@ -255,7 +255,6 @@ onUiUpdate(function(){ } prompt.parentElement.insertBefore(counter, prompt) - counter.classList.add("token-counter") prompt.parentElement.style.position = "relative" promptTokecountUpdateFuncs[id] = function(){ update_token_counter(id_button); } |