Skip to content

Commit

Permalink
Fix variable redeclaration in the timeline plugin (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm authored and thijstriemstra committed Jul 29, 2017
1 parent 64bd48b commit abc69a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/wavesurfer.timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ WaveSurfer.Timeline = {
}

if (seconds/60 > 1) {
var minutes = parseInt(seconds / 60),
seconds = parseInt(seconds % 60);
var minutes = parseInt(seconds / 60);
seconds = parseInt(seconds % 60);
seconds = (seconds < 10) ? '0' + seconds : seconds;
return '' + minutes + ':' + seconds;
} else {
Expand Down

0 comments on commit abc69a4

Please sign in to comment.