keep randomId simpler

This commit is contained in:
siutin
2023-03-29 00:17:19 +08:00
parent 90366b8d85
commit 70ab21e67d
3 changed files with 6 additions and 12 deletions

View File

@@ -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