diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-22 10:57:05 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-22 10:57:05 +0000 |
commit | 0d90064e9e00612b1e065eba4e7b394e7892af34 (patch) | |
tree | 574ffeacd68f3fb087dcf4c1c35a3c2786a32b28 /javascript/progressbar.js | |
parent | 9158d0fd1215bb93358e6c58395c08d4ffe011f2 (diff) | |
download | stable-diffusion-webui-gfx803-0d90064e9e00612b1e065eba4e7b394e7892af34.tar.gz stable-diffusion-webui-gfx803-0d90064e9e00612b1e065eba4e7b394e7892af34.tar.bz2 stable-diffusion-webui-gfx803-0d90064e9e00612b1e065eba4e7b394e7892af34.zip |
eslint
Diffstat (limited to 'javascript/progressbar.js')
-rw-r--r-- | javascript/progressbar.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/javascript/progressbar.js b/javascript/progressbar.js index 160813fc..531ac831 100644 --- a/javascript/progressbar.js +++ b/javascript/progressbar.js @@ -82,7 +82,7 @@ function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgre var livePreview = null; var removeProgressBar = function() { - if(! divProgress) return; + if (!divProgress) return; setTitle(""); parentProgressbar.removeChild(divProgress); @@ -153,7 +153,7 @@ function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgre var img = new Image(); img.onload = function() { - if(!livePreview){ + if (!livePreview) { livePreview = document.createElement('div'); livePreview.className = 'livePreview'; gallery.insertBefore(livePreview, gallery.firstElementChild); @@ -177,7 +177,7 @@ function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgre funProgress(id_task, 0); - if(gallery){ + if (gallery) { funLivePreview(id_task, 0); } |