Remove pad spaces from progress bar text

This commit is contained in:
Alexandre Simard 2022-10-19 15:21:36 -04:00 committed by GitHub
parent 14c1c2b935
commit 4fbdbddc18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ function check_progressbar(id_part, id_progressbar, id_progressbar_span, id_skip
if(opts.show_progress_in_title && progressbar && progressbar.offsetParent){
if(progressbar.innerText){
let newtitle = 'Stable Diffusion - ' + progressbar.innerText
let newtitle = 'Stable Diffusion - ' + progressbar.innerText.slice(2)
if(document.title != newtitle){
document.title = newtitle;
}