From 8c6de64ac9ac50fc01fa760b2344f9be098150bc Mon Sep 17 00:00:00 2001 From: Daniel van Noord Date: Sun, 31 Jan 2021 17:33:41 +0100 Subject: [PATCH] Spelling error in TimeFormat --- CookieMonster.js | 2 +- src/Disp.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CookieMonster.js b/CookieMonster.js index f98a297..23ab5bf 100644 --- a/CookieMonster.js +++ b/CookieMonster.js @@ -1357,7 +1357,7 @@ CM.Disp.FormatTime = function(time, longFormat) { str += (d < 10 ? '0' : '') + d + ':'; str += (h < 10 ? '0' : '') + h + ':'; str += (m < 10 ? '0' : '') + m + ':'; - str += (s < 10 ? '0' : '') + s + ':'; + str += (s < 10 ? '0' : '') + s; } else { if (time > 777600000) return longFormat ? 'Over 9000 days!' : '>9000d'; str += (y > 0 ? y + (longFormat ? (y == 1 ? ' year' : ' years') : 'y') + ', ': ""); diff --git a/src/Disp.js b/src/Disp.js index 510fced..e7e2a90 100644 --- a/src/Disp.js +++ b/src/Disp.js @@ -144,7 +144,7 @@ CM.Disp.FormatTime = function(time, longFormat) { str += (d < 10 ? '0' : '') + d + ':'; str += (h < 10 ? '0' : '') + h + ':'; str += (m < 10 ? '0' : '') + m + ':'; - str += (s < 10 ? '0' : '') + s + ':'; + str += (s < 10 ? '0' : '') + s; } else { if (time > 777600000) return longFormat ? 'Over 9000 days!' : '>9000d'; str += (y > 0 ? y + (longFormat ? (y == 1 ? ' year' : ' years') : 'y') + ', ': "");