aboutsummaryrefslogtreecommitdiff
path: root/javascript/progressbar.js
diff options
context:
space:
mode:
authorsiutin <osiutino@gmail.com>2023-03-29 00:17:19 +0800
committersiutin <osiutino@gmail.com>2023-03-30 17:20:09 +0800
commit70ab21e67d128b953fbf4a360e02ac783f40dd55 (patch)
treeddbe1095cef2b99c46957a90885475c58a582b51 /javascript/progressbar.js
parent90366b8d8564c6fcbf5899fb31e426b68b04eb7b (diff)
keep randomId simpler
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 7ba14192..4ac9b8db 100644
--- a/javascript/progressbar.js
+++ b/javascript/progressbar.js
@@ -59,8 +59,8 @@ function setTitle(progress){
}
-function randomId(prefix=null){
- return "task(" + (prefix == null ? "" : prefix + "_") + Math.random().toString(36).slice(2, 7) + Math.random().toString(36).slice(2, 7) + Math.random().toString(36).slice(2, 7)+")"
+function randomId(){
+ return "task(" + Math.random().toString(36).slice(2, 7) + Math.random().toString(36).slice(2, 7) + Math.random().toString(36).slice(2, 7)+")"
}
// starts sending progress requests to "/internal/progress" uri, creating progressbar above progressbarContainer element and