1
0

Refactor renderer.js to use async function for startLiveCountdown

This commit is contained in:
2025-05-26 10:29:15 +02:00
parent b90f968aae
commit 0058795fb8

View File

@@ -361,7 +361,7 @@ function startLiveCountdown(folderObj, msLeft) {
return;
}
const minutesCommitThreshold = window.minutesCommitThreshold || 5;
const minutesCommitThreshold = await window.electronAPI.getMinutesCommitThreshold?.() || 5;
const msThreshold = minutesCommitThreshold * 60 * 1000;
const endTime = new Date(folderObj.firstCandidateBirthday).getTime() + msThreshold;