feat(worker.js): clear old job card on restart

Ensure previous job cards are removed when a conversion job is restarted. This change addresses the accumulation of stale job cards in the UI, mitigating clutter and enhancing user experience by only displaying relevant, active jobs.
This commit is contained in:
Kumi 2024-04-13 09:05:56 +02:00
parent a1e4fe47b6
commit 89bb640112
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -88,6 +88,7 @@ function restartconversion(jobid, title) {
var interval = setInterval(checkServerForFile, 3000, msg.id, title);
intervals[msg.id] = interval;
addcard(msg.id, title);
deletecard(jobid);
},
});
}