aboutsummaryrefslogtreecommitdiff
path: root/src/js/arching-kaos-fetch.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-09-14 13:19:58 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-09-14 13:19:58 +0300
commitb3fca27271b59f87a758e0877ec017f83d31491c (patch)
tree39b06d9534cc77921f1272468486b8500cad955f /src/js/arching-kaos-fetch.js
parent6d32a51649c246c86ff8c77bb123c6fa860f4e96 (diff)
downloadarching-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.js4
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", ()=>{