Switch from round to floor

This commit is contained in:
Ajay Ramachandran 2021-02-14 14:22:28 -05:00
parent 54b4681fc3
commit d1a7209d69

View file

@ -598,7 +598,7 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
//converts time in seconds to minutes:seconds
function getFormattedTime(seconds) {
const minutes = Math.floor(seconds / 60);
const secondsDisplayNumber = Math.round(seconds - minutes * 60);
const secondsDisplayNumber = Math.floor(seconds - minutes * 60);
let secondsDisplay = String(secondsDisplayNumber);
if (secondsDisplayNumber < 10) {
//add a zero