fix: removed redundant document check from getTypeLabel

pull/2757/head
William Grant 2 years ago
parent 5b503d32cc
commit feb8f46966

@ -55,14 +55,7 @@ function getTypeLabel({
if (MIME.isAudio(contentType)) {
return window.i18n('audio');
}
if (
!GoogleChrome.isVideoTypeSupported(contentType) &&
!GoogleChrome.isImageTypeSupported(contentType) &&
!MIME.isAudio(contentType)
) {
return window.i18n('document');
}
return;
return window.i18n('document');
}
export const QuoteText = (

Loading…
Cancel
Save