Skip to content

Commit

Permalink
Use original App Title in progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
light-and-ray committed Feb 14, 2024
1 parent b7f45e6 commit 1142201
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 1142201

Please sign in to comment.