Player: handle case where torrent-to-HTTP server hasn't started yet

This commit is contained in:
DC
2016-09-23 02:55:49 -07:00
parent 076eb009b9
commit 72db60bb12

View File

@@ -37,7 +37,9 @@ function getPreviousIndex (state) {
} }
function getCurrentLocalURL (state) { function getCurrentLocalURL (state) {
return state.server.localURL + '/' + state.playing.fileIndex return state.server
? state.server.localURL + '/' + state.playing.fileIndex
: ''
} }
function updateCache (state) { function updateCache (state) {