mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Don't show NaN as formatted time
This commit is contained in:
parent
3a49eda47f
commit
e349ac8e33
1 changed files with 1 additions and 1 deletions
|
@ -1604,5 +1604,5 @@ function showTimeWithoutSkips(allSponsorTimes): void {
|
||||||
display.appendChild(duration);
|
display.appendChild(duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
duration.innerText = (skipDuration <= 0 || isNaN(skipDuration)) ? "" : " ("+formatedTime+")";
|
duration.innerText = (skipDuration <= 0 || isNaN(skipDuration) || formatedTime.includes("NaN")) ? "" : " ("+formatedTime+")";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue