Fix FPS label in resolution menu

pull/758/head
Chocobozzz 2018-06-29 17:45:05 +02:00
parent 3a6f351b25
commit 395ecf709d
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 1 deletions

View File

@ -134,7 +134,10 @@ class PeerTubePlugin extends Plugin {
}
getCurrentResolutionLabel () {
return this.currentVideoFile ? this.currentVideoFile.resolution.label : ''
if (!this.currentVideoFile) return ''
const fps = this.currentVideoFile.fps >= 50 ? this.currentVideoFile.fps : ''
return this.currentVideoFile.resolution.label + fps
}
updateVideoFile (