Przeglądaj źródła

Fix callback of FilesInput sometimes not called

Popov72 4 lat temu
rodzic
commit
cdcaa2b809
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/Misc/filesInput.ts

+ 1 - 1
src/Misc/filesInput.ts

@@ -157,7 +157,7 @@ export class FilesInput {
                 }
             }
 
-            if (--remaining.count) {
+            if (--remaining.count === 0) {
                 callback();
             }
         });