Bläddra i källkod

Use original App Title in progress bar

Andray 1 år sedan
förälder
incheckning
1142201a3a
1 ändrade filer med 8 tillägg och 1 borttagningar
  1. 8 1
      javascript/progressbar.js

+ 8 - 1
javascript/progressbar.js

@@ -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;