Refactor main.js: TorrentPlayer.isTorrent

This commit is contained in:
DC
2016-07-16 16:03:22 -07:00
parent 4ebf7e25b7
commit 6d664f2086
3 changed files with 26 additions and 18 deletions

View File

@@ -148,7 +148,7 @@ function TorrentList (state) {
// Only show the play button for torrents that contain playable media
var playButton
if (TorrentPlayer.isPlayableTorrent(torrentSummary)) {
if (TorrentPlayer.isPlayableTorrentSummary(torrentSummary)) {
playButton = hx`
<i.button-round.icon.play
title=${playTooltip}