summaryrefslogtreecommitdiffstats
path: root/webapp/utils/utils.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/utils/utils.jsx
parent9b9788cf110b57a080d4a4dae43c7deff0274710 (diff)
downloadchat-0aa84799fd41cf7c94dc4901095b0ee9f4c511b3.tar.gz
chat-0aa84799fd41cf7c94dc4901095b0ee9f4c511b3.tar.bz2
chat-0aa84799fd41cf7c94dc4901095b0ee9f4c511b3.zip
svg preview (#6045)
Diffstat (limited to 'webapp/utils/utils.jsx')
-rw-r--r--webapp/utils/utils.jsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx
index ceb2958b5..f707e2b28 100644
--- a/webapp/utils/utils.jsx
+++ b/webapp/utils/utils.jsx
@@ -426,6 +426,10 @@ export function getFileType(extin) {
return 'patch';
}
+ if (Constants.SVG_TYPES.indexOf(ext) > -1) {
+ return 'svg';
+ }
+
return 'other';
}
@@ -449,7 +453,7 @@ export function getIconClassName(fileTypeIn) {
return Constants.ICON_NAME_FROM_TYPE[fileType];
}
- return 'glyphicon-file';
+ return 'generic';
}
export function splitFileLocation(fileLocation) {