Skip to content

Commit

Permalink
Merge pull request #14916 from light-and-ray/use_original_document_title
Browse files Browse the repository at this point in the history
Use original App Title in progress bar
  • Loading branch information
AUTOMATIC1111 committed Feb 17, 2024
2 parents d235aa0 + 1142201 commit 48ce037
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion javascript/progressbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 48ce037

Please sign in to comment.