Not open docx preview (#3462)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-06-28 10:36:35 +06:00 committed by GitHub
parent c7ade707c6
commit db53abf7c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {