Skip to content

Commit

Permalink
Not open docx preview (#3462)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
  • Loading branch information
BykhovDenis authored Jun 28, 2023
1 parent c7ade70 commit db53abf
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit db53abf

Please sign in to comment.