Refactor renderer.js to use async function for startLiveCountdown
This commit is contained in:
@@ -361,7 +361,7 @@ function startLiveCountdown(folderObj, msLeft) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const minutesCommitThreshold = window.minutesCommitThreshold || 5;
|
const minutesCommitThreshold = await window.electronAPI.getMinutesCommitThreshold?.() || 5;
|
||||||
const msThreshold = minutesCommitThreshold * 60 * 1000;
|
const msThreshold = minutesCommitThreshold * 60 * 1000;
|
||||||
const endTime = new Date(folderObj.firstCandidateBirthday).getTime() + msThreshold;
|
const endTime = new Date(folderObj.firstCandidateBirthday).getTime() + msThreshold;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user