diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-09-02 19:22:46 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-09-02 19:22:46 +0200 |
commit | 068ff09cfed6081ed794cf899830911f72c3e4fb (patch) | |
tree | 6ff27f4718b87b0eab99e762769bddcce6d60563 /apps | |
parent | f97359706a407a876643026cb608e4d5dd319d29 (diff) | |
download | nextcloud-server-068ff09cfed6081ed794cf899830911f72c3e4fb.tar.gz nextcloud-server-068ff09cfed6081ed794cf899830911f72c3e4fb.zip |
fallback for isimage
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/fileinfomodel.js | 2 |
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; }, /** |