Merge pull request #14916 from light-and-ray/use_original_document_title

Use original App Title in progress bar
This commit is contained in:
AUTOMATIC1111 2024-02-17 08:57:56 +03:00 committed by GitHub
commit 48ce0379bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -45,8 +45,15 @@ function formatTime(secs) {
}
}
var originalAppTitle = undefined;
onUiLoaded(function() {
originalAppTitle = document.title;
});
function setTitle(progress) {
var title = 'Stable Diffusion';
var title = originalAppTitle;
if (opts.show_progress_in_title && progress) {
title = '[' + progress.trim() + '] ' + title;