diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-09-14 13:19:58 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-09-14 13:19:58 +0300 |
commit | b3fca27271b59f87a758e0877ec017f83d31491c (patch) | |
tree | 39b06d9534cc77921f1272468486b8500cad955f /src/js/arching-kaos-fetch.js | |
parent | 6d32a51649c246c86ff8c77bb123c6fa860f4e96 (diff) | |
download | arching-kaos-web-ui-b3fca27271b59f87a758e0877ec017f83d31491c.tar.gz arching-kaos-web-ui-b3fca27271b59f87a758e0877ec017f83d31491c.tar.bz2 arching-kaos-web-ui-b3fca27271b59f87a758e0877ec017f83d31491c.zip |
Further refactoring
- Removed comments since moving stuff around made them irrelevant
- Introduced some new functions breaking out big function chunks
- Cleaned up further commented out commands
Diffstat (limited to 'src/js/arching-kaos-fetch.js')
-rw-r--r-- | src/js/arching-kaos-fetch.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/arching-kaos-fetch.js b/src/js/arching-kaos-fetch.js index 656cbe0..57d03c9 100644 --- a/src/js/arching-kaos-fetch.js +++ b/src/js/arching-kaos-fetch.js @@ -13,9 +13,9 @@ function archingKaosFetchJSON( url, callback, params ){ }); request.addEventListener("progress", (event)=>{ if (event.lengthComputable && progressPlaceholder){ - progressPlaceholder = (event.loaded / event.total) * 100; + progressPlaceholder.value = (event.loaded / event.total) * 100; } else { - progressPlaceholder = 0; + progressPlaceholder.value = 0; } }); request.addEventListener("abort", ()=>{ |