show full content-type

This commit is contained in:
Baltazar Gomez 2018-04-16 19:51:33 -06:00 committed by GitHub
parent 2ea96064c2
commit b07a7bf8bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,6 @@
// @flow // @flow
import * as React from 'react'; import * as React from 'react';
import ReactMarkdown from 'react-markdown'; import ReactMarkdown from 'react-markdown';
import lbry from 'lbry';
import Button from 'component/button'; import Button from 'component/button';
import path from 'path'; import path from 'path';
@ -31,7 +30,7 @@ const FileDetails = (props: Props) => {
} }
const { description, language, license } = metadata; const { description, language, license } = metadata;
const mediaType = lbry.getMediaType(contentType); const mediaType = contentType || 'unknown';
const downloadPath = fileInfo ? path.normalize(fileInfo.download_path) : null; const downloadPath = fileInfo ? path.normalize(fileInfo.download_path) : null;