aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/content.ts
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2020-08-02 14:38:50 -0400
committerAjay Ramachandran <[email protected]>2020-08-02 14:38:50 -0400
commite349ac8e33ef94b7a526178fb501e00be0ee3b02 (patch)
tree504e6a1319eae166531cd27e716a29f9a95734cd /src/content.ts
parent3a49eda47fd71e07ef3d8c32f0f6417d2449c50f (diff)
downloadSponsorBlock-e349ac8e33ef94b7a526178fb501e00be0ee3b02.tar.gz
SponsorBlock-e349ac8e33ef94b7a526178fb501e00be0ee3b02.zip
Don't show NaN as formatted time
Diffstat (limited to 'src/content.ts')
-rw-r--r--src/content.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts
index 68566389..36d7ebf3 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -1604,5 +1604,5 @@ function showTimeWithoutSkips(allSponsorTimes): void {
display.appendChild(duration);
}
- duration.innerText = (skipDuration <= 0 || isNaN(skipDuration)) ? "" : " ("+formatedTime+")";
+ duration.innerText = (skipDuration <= 0 || isNaN(skipDuration) || formatedTime.includes("NaN")) ? "" : " ("+formatedTime+")";
}