mirror of
https://github.com/videojs/video.js.git
synced 2025-07-17 01:42:41 +02:00
whitespace fix
This commit is contained in:
@ -504,16 +504,11 @@ vjs.Player.prototype.onDurationChange = function(){
|
||||
// We need to get the techGet response and check for a value so we don't
|
||||
// accidentally cause the stack to blow up.
|
||||
var duration = this.techGet('duration');
|
||||
|
||||
if (duration) {
|
||||
|
||||
if (duration < 0) {
|
||||
|
||||
duration = Infinity;
|
||||
}
|
||||
|
||||
this.duration(duration);
|
||||
|
||||
// Determine if the stream is live and propagate styles down to UI.
|
||||
if (duration === Infinity) {
|
||||
this.addClass('vjs-live');
|
||||
@ -521,7 +516,6 @@ vjs.Player.prototype.onDurationChange = function(){
|
||||
this.removeClass('vjs-live');
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user