Show video title in app title bar
This commit is contained in:
@@ -168,6 +168,7 @@ function dispatch (action, ...args) {
|
|||||||
closeServer()
|
closeServer()
|
||||||
}
|
}
|
||||||
state.url = '/'
|
state.url = '/'
|
||||||
|
state.title = config.APP_NAME
|
||||||
update()
|
update()
|
||||||
}
|
}
|
||||||
if (action === 'forward') {
|
if (action === 'forward') {
|
||||||
@@ -398,6 +399,7 @@ function closeServer () {
|
|||||||
function openPlayer (torrent) {
|
function openPlayer (torrent) {
|
||||||
startServer(torrent, function () {
|
startServer(torrent, function () {
|
||||||
state.url = '/player'
|
state.url = '/player'
|
||||||
|
state.title = torrent.name
|
||||||
update()
|
update()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user