mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Switch from round to floor
This commit is contained in:
parent
54b4681fc3
commit
d1a7209d69
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue