Merge branch 'master' of github.com:h5p/h5p-memory-game

pull/18/head
Frode Petterson 2017-01-23 14:13:39 +01:00
commit 923aa80cae
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ H5P.MemoryGame = (function (EventDispatcher, $) {
timer.notify('every_tenth_second', function () { timer.notify('every_tenth_second', function () {
var time = timer.getTime(); var time = timer.getTime();
var minutes = H5P.Timer.extractTimeElement(time, 'minutes'); 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) { if (seconds < 10) {
seconds = '0' + seconds; seconds = '0' + seconds;
} }