Use original App Title in progress bar

This commit is contained in:
Andray 2024-02-14 15:26:57 +04:00
parent b7f45e67dc
commit 1142201a3a
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) { function setTitle(progress) {
var title = 'Stable Diffusion'; var title = originalAppTitle;
if (opts.show_progress_in_title && progress) { if (opts.show_progress_in_title && progress) {
title = '[' + progress.trim() + '] ' + title; title = '[' + progress.trim() + '] ' + title;