summaryrefslogtreecommitdiffstats
path: root/webapp/components/view_image.jsx
diff options
context:
space:
mode:
authorYusuke Nemoto <kaakaa@users.noreply.github.com>2017-04-13 06:26:02 +0900
committerCorey Hulen <corey@hulen.com>2017-04-12 14:26:02 -0700
commit0aa84799fd41cf7c94dc4901095b0ee9f4c511b3 (patch)
treee498cba7f17e585f97f5e27c8a8e4181c3b35b34 /webapp/components/view_image.jsx
parent9b9788cf110b57a080d4a4dae43c7deff0274710 (diff)
downloadchat-0aa84799fd41cf7c94dc4901095b0ee9f4c511b3.tar.gz
chat-0aa84799fd41cf7c94dc4901095b0ee9f4c511b3.tar.bz2
chat-0aa84799fd41cf7c94dc4901095b0ee9f4c511b3.zip
svg preview (#6045)
Diffstat (limited to 'webapp/components/view_image.jsx')
-rw-r--r--webapp/components/view_image.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/view_image.jsx b/webapp/components/view_image.jsx
index 4447e9966..580c9e7a4 100644
--- a/webapp/components/view_image.jsx
+++ b/webapp/components/view_image.jsx
@@ -180,7 +180,7 @@ export default class ViewImageModal extends React.Component {
if (this.state.loaded[this.state.imgId]) {
const fileType = Utils.getFileType(fileInfo.extension);
- if (fileType === 'image') {
+ if (fileType === 'image' || fileType === 'svg') {
content = (
<ImagePreview
fileInfo={fileInfo}