This commit is contained in:
Manav Rathi
2024-11-23 13:50:31 +05:30
parent 5786a3cb79
commit ef26df12cc

View File

@@ -440,7 +440,7 @@ class DownloadManagerImpl {
});
}
trackDownloadProgress = (fileID: number, fileSize: number) => {
private trackDownloadProgress(fileID: number, fileSize: number) {
return (event: { loaded: number; total: number }) => {
if (isNaN(event.total) || event.total === 0) {
if (!fileSize) {
@@ -458,12 +458,12 @@ class DownloadManagerImpl {
}
this.progressUpdater(new Map(this.fileDownloadProgress));
};
};
}
clearDownloadProgress = (fileID: number) => {
private clearDownloadProgress(fileID: number) {
this.fileDownloadProgress.delete(fileID);
this.progressUpdater(new Map(this.fileDownloadProgress));
};
}
}
const DownloadManager = new DownloadManagerImpl();