From 2ef07b2b206d19366f8259a98e1f0db82ad554e5 Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Fri, 20 Jan 2017 14:15:59 +0100 Subject: [PATCH] fix bug --- memory-game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory-game.js b/memory-game.js index d5479e8..16bfcfe 100644 --- a/memory-game.js +++ b/memory-game.js @@ -146,7 +146,7 @@ H5P.MemoryGame = (function (EventDispatcher, $) { timer.notify('every_tenth_second', function () { var time = timer.getTime(); var minutes = H5P.Timer.extractTimeElement(time, 'minutes'); - var seconds = H5P.Timer.extractTimeElement(time, 'seconds'); + var seconds = H5P.Timer.extractTimeElement(time, 'seconds') % 60; if (seconds < 10) { seconds = '0' + seconds; }