Not open docx preview (#3462)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-06-28 11:36:35 +07:00
committed by GitHub
parent c7ade707c6
commit db53abf7c0
@@ -39,11 +39,7 @@
return contentType.startsWith('image/')
}
function openEmbedded (contentType: string) {
return (
contentType.includes('application/pdf') ||
contentType.startsWith('image/') ||
contentType.startsWith('application/msword')
)
return contentType.includes('application/pdf') || contentType.startsWith('image/')
}
function clickHandler (e: MouseEvent) {