formatting
This commit is contained in:
parent
e27e311756
commit
d91ce26655
1 changed files with 3 additions and 1 deletions
|
@ -156,7 +156,9 @@ class MediaPlayer extends React.PureComponent<Props, State> {
|
|||
|
||||
// Render custom viewer: FileRender
|
||||
if (this.isSupportedFile()) {
|
||||
downloadCompleted && this.renderFile();
|
||||
if (downloadCompleted) {
|
||||
this.renderFile();
|
||||
}
|
||||
} else {
|
||||
// Render default viewer: render-media (video, audio, img, iframe)
|
||||
const currentMediaContainer = this.mediaContainer.current;
|
||||
|
|
Loading…
Add table
Reference in a new issue