mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 06:30:53 +03:00
save download count changes to localStorage. fixes #1080
This commit is contained in:
@@ -157,6 +157,9 @@ class Storage {
|
||||
const workingFiles = this.files.slice();
|
||||
for (const f of workingFiles) {
|
||||
const cc = await f.updateDownloadCount();
|
||||
if (cc) {
|
||||
await this.writeFile(f);
|
||||
}
|
||||
downloadCount = downloadCount || cc;
|
||||
outgoing = outgoing || f.expired;
|
||||
if (f.expired) {
|
||||
|
||||
Reference in New Issue
Block a user