mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-23 20:13:20 +00:00
Not open docx preview (#3462)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
c7ade707c6
commit
db53abf7c0
@ -39,11 +39,7 @@
|
|||||||
return contentType.startsWith('image/')
|
return contentType.startsWith('image/')
|
||||||
}
|
}
|
||||||
function openEmbedded (contentType: string) {
|
function openEmbedded (contentType: string) {
|
||||||
return (
|
return contentType.includes('application/pdf') || contentType.startsWith('image/')
|
||||||
contentType.includes('application/pdf') ||
|
|
||||||
contentType.startsWith('image/') ||
|
|
||||||
contentType.startsWith('application/msword')
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function clickHandler (e: MouseEvent) {
|
function clickHandler (e: MouseEvent) {
|
||||||
|
Loading…
Reference in New Issue
Block a user