Return a copy of tasks array in getTasks method

This commit is contained in:
2025-05-19 10:21:33 +08:00
parent 8668f3a947
commit d8046472be

View File

@@ -213,7 +213,7 @@ class UploadingManager extends Listenable {
}
getTasks() {
return this.tasks
return Array.from(this.tasks)
}
hasTasks() {