save download count changes to localStorage. fixes #1080
This commit is contained in:
parent
6e175dd5ca
commit
783d7bfa03
3 changed files with 22 additions and 17 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue