diff options
author | Aarni Koskela <akx@iki.fi> | 2023-04-30 19:08:52 +0000 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2023-04-30 19:08:52 +0000 |
commit | 8ccc27127bd5abcba05f30f8a72fc37025b588ac (patch) | |
tree | d9bd30fb6e301ff996d2889d54304c089c73bee8 /javascript/progressbar.js | |
parent | 34a6ad80d5a3d6670a9e89089558e724d8c9f8bd (diff) | |
download | stable-diffusion-webui-gfx803-8ccc27127bd5abcba05f30f8a72fc37025b588ac.tar.gz stable-diffusion-webui-gfx803-8ccc27127bd5abcba05f30f8a72fc37025b588ac.tar.bz2 stable-diffusion-webui-gfx803-8ccc27127bd5abcba05f30f8a72fc37025b588ac.zip |
Fix a whole bunch of implicit globals
Diffstat (limited to 'javascript/progressbar.js')
-rw-r--r-- | javascript/progressbar.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/javascript/progressbar.js b/javascript/progressbar.js index 23bbf298..7b853a40 100644 --- a/javascript/progressbar.js +++ b/javascript/progressbar.js @@ -10,7 +10,6 @@ function getGallerySelectedIndex(id_gallery){ function request(url, data, handler, errorHandler){ var xhr = new XMLHttpRequest(); - var url = url; xhr.open("POST", url, true); xhr.setRequestHeader("Content-Type", "application/json"); xhr.onreadystatechange = function () { @@ -107,7 +106,7 @@ function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgre divProgress.style.width = rect.width + "px"; } - progressText = "" + let progressText = "" divInner.style.width = ((res.progress || 0) * 100.0) + '%' divInner.style.background = res.progress ? "" : "transparent" |