Skip to content

Commit 54eec01

Browse files
committed
清除缓存
1 parent 7f2c035 commit 54eec01

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/app/service/service_worker/download.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ const onChangedListener = (downloadDelta: chrome.downloads.DownloadDelta) => {
142142
loaded: downloadItem?.downloadItem?.totalBytes, // 兼容 TM,总是传回 totalBytes (与实际有否储存无关)
143143
total: downloadItem?.downloadItem?.totalBytes,
144144
});
145+
146+
responseMap.delete(id); // 清除缓存
145147
}
146148
});
147149
};

0 commit comments

Comments
 (0)