aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/progressbar.js
diff options
context:
space:
mode:
authorcatalpaaa <89681913+catalpaaa@users.noreply.github.com>2023-05-01 18:59:21 +0000
committerGitHub <noreply@github.com>2023-05-01 18:59:21 +0000
commit9eb5b3e90f1775af81c828f19e7caded70ba8884 (patch)
tree4630848311b90277462842669274852f7f6a972a /javascript/progressbar.js
parentecdc6471e7d694ef9ecec96e8c3128237efe069a (diff)
parent72cd27a13587c9579942577e9e3880778be195f6 (diff)
downloadstable-diffusion-webui-gfx803-9eb5b3e90f1775af81c828f19e7caded70ba8884.tar.gz
stable-diffusion-webui-gfx803-9eb5b3e90f1775af81c828f19e7caded70ba8884.tar.bz2
stable-diffusion-webui-gfx803-9eb5b3e90f1775af81c828f19e7caded70ba8884.zip
Merge branch 'experimental' into subpath-support
Diffstat (limited to 'javascript/progressbar.js')
-rw-r--r--javascript/progressbar.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/progressbar.js b/javascript/progressbar.js
index 4ac9b8db..23bbf298 100644
--- a/javascript/progressbar.js
+++ b/javascript/progressbar.js
@@ -66,7 +66,7 @@ function randomId(){
// starts sending progress requests to "/internal/progress" uri, creating progressbar above progressbarContainer element and
// preview inside gallery element. Cleans up all created stuff when the task is over and calls atEnd.
// calls onProgress every time there is a progress update
-function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgress){
+function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgress, inactivityTimeout=40){
var dateStart = new Date()
var wasEverActive = false
var parentProgressbar = progressbarContainer.parentNode
@@ -138,7 +138,7 @@ function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgre
return
}
- if(elapsedFromStart > 5 && !res.queued && !res.active){
+ if(elapsedFromStart > inactivityTimeout && !res.queued && !res.active){
removeProgressBar()
return
}