Skip to content

Commit

Permalink
fix: file replay
Browse files Browse the repository at this point in the history
  • Loading branch information
whes1015 committed Aug 2, 2023
1 parent 5e2228c commit 604ad99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/index/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,10 @@ function replay_stop() {
time.style.cursor = "";
time.style.color = "white";
setTimeout(() => fetch_eew(), 1500);
if (replay_list.length) {
fs.rmSync(path.join(app.getPath("userData"), `replay/${replay_list[0]}`));
for (let i = 0; i < replay_list.length; i++) {
fs.rmSync(path.join(app.getPath("userData"), `replay/${replay_list[i]}`));
replay_list.splice(0, 1);
i--;
}
}

Expand Down

0 comments on commit 604ad99

Please sign in to comment.