Permalink
Browse files

Cast line number to int

  • Loading branch information...
1 parent de3f2a6 commit 02f44ba01f0ea3cf41b8d2ebf101b4180d747a2f @vslinko committed Nov 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tio.js
View
2 tio.js
@@ -151,7 +151,7 @@ var playNext = function () {
currentTrack.on('end', playNext);
new MusicMetadata(currentTrack).on('metadata', function (metadata) {
- var lineNo = nowPlayingWindow.height / 2 - 1;
+ var lineNo = parseInt(nowPlayingWindow.height / 2 - 1);
nowPlayingWindow.erase();
nowPlayingWindow.centertext(lineNo, metadata.artist.join(', '));

0 comments on commit 02f44ba

Please sign in to comment.