aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-09-02 19:22:46 +0200
committerRobin Appelman <icewind@owncloud.com>2015-09-02 19:22:46 +0200
commit068ff09cfed6081ed794cf899830911f72c3e4fb (patch)
tree6ff27f4718b87b0eab99e762769bddcce6d60563 /apps/files/js
parentf97359706a407a876643026cb608e4d5dd319d29 (diff)
downloadnextcloud-server-068ff09cfed6081ed794cf899830911f72c3e4fb.tar.gz
nextcloud-server-068ff09cfed6081ed794cf899830911f72c3e4fb.zip
fallback for isimage
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/fileinfomodel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileinfomodel.js b/apps/files/js/fileinfomodel.js
index 1c850239cdc..ab205b2efb4 100644
--- a/apps/files/js/fileinfomodel.js
+++ b/apps/files/js/fileinfomodel.js
@@ -58,7 +58,7 @@
* @return {boolean} true if this is an image, false otherwise
*/
isImage: function() {
- return this.get('mimetype').substr(0, 6) === 'image/';
+ return this.get('mimetype')? this.get('mimetype').substr(0, 6) === 'image/' : false;
},
/**