fix: hide add button when on player page

This commit is contained in:
Feross Aboukhadijeh
2016-03-04 16:48:37 -08:00
parent 6d1223e090
commit b6f24f7726

View File

@@ -18,7 +18,7 @@ function Header (state, dispatch) {
}, 'chevron_right')
]),
(function () {
if (state.url !== '/player') {
if (state.view.url !== '/player') {
return h('.nav.right', [
h('i.icon.add', {
onclick: onAddTorrent