Show video title in app title bar

This commit is contained in:
Feross Aboukhadijeh
2016-03-07 15:47:35 -08:00
parent 2a423a8cb3
commit 2ea94de8c6

View File

@@ -168,6 +168,7 @@ function dispatch (action, ...args) {
closeServer()
}
state.url = '/'
state.title = config.APP_NAME
update()
}
if (action === 'forward') {
@@ -398,6 +399,7 @@ function closeServer () {
function openPlayer (torrent) {
startServer(torrent, function () {
state.url = '/player'
state.title = torrent.name
update()
})
}