Player: handle case where torrent-to-HTTP server hasn't started yet
This commit is contained in:
@@ -37,7 +37,9 @@ function getPreviousIndex (state) {
|
||||
}
|
||||
|
||||
function getCurrentLocalURL (state) {
|
||||
return state.server.localURL + '/' + state.playing.fileIndex
|
||||
return state.server
|
||||
? state.server.localURL + '/' + state.playing.fileIndex
|
||||
: ''
|
||||
}
|
||||
|
||||
function updateCache (state) {
|
||||
|
||||
Reference in New Issue
Block a user