automatically size player on start

This commit is contained in:
Feross Aboukhadijeh
2016-03-03 01:05:00 -08:00
parent 128cb679aa
commit 4d094c8209
5 changed files with 117 additions and 39 deletions

View File

@@ -27,7 +27,7 @@ function TorrentList (state, dispatch) {
onclick: openPlayer
}, 'play_arrow'),
(function () {
if (state.chromecast) {
if (state.view.chromecast) {
return h('i.btn.icon.chromecast', {
className: !torrent.ready ? 'disabled' : '',
onclick: openChromecast
@@ -35,7 +35,7 @@ function TorrentList (state, dispatch) {
}
})(),
(function () {
if (state.airplay) {
if (state.view.airplay) {
return h('i.btn.icon.airplay', {
className: !torrent.ready ? 'disabled' : '',
onclick: openAirplay