mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-15 21:04:46 +01:00
fix (notification): fix notification problems
This commit is contained in:
parent
c20572c790
commit
4907c9b0d0
1 changed files with 3 additions and 0 deletions
|
|
@ -98,6 +98,9 @@ function TaskManager(){
|
|||
addTask: function(task){
|
||||
current_task && current_task.cancel();
|
||||
tasks.push(task);
|
||||
if(tasks.length > 20){
|
||||
tasks.splice(0, tasks.length - 10);
|
||||
}
|
||||
if(is_running === false){
|
||||
is_running = true;
|
||||
ret._run();
|
||||
|
|
|
|||
Loading…
Reference in a new issue