pace: reset exstats on load

master
Rob Pilling 2024-10-10 18:09:24 +01:00
parent eabb2a8828
commit 5c9a4aed62
1 changed files with 2 additions and 0 deletions

View File

@ -164,6 +164,8 @@ const onButton = () => {
resumeRun();
};
exs.start(); // aka reset
exs.stats.dist.on("notify", (dist) => {
const prev = splits[splits.length - 1] || 0;
const totalDist = dist.getValue();