Index: ui/file_manager/gallery/js/gallery_util.js |
diff --git a/ui/file_manager/gallery/js/gallery_util.js b/ui/file_manager/gallery/js/gallery_util.js |
index c5d3fe0f61cc0508706ce4ab936f4852e853d9f0..7b04bfd1df773765fc3884c6194c592e68e0022d 100644 |
--- a/ui/file_manager/gallery/js/gallery_util.js |
+++ b/ui/file_manager/gallery/js/gallery_util.js |
@@ -45,6 +45,8 @@ GalleryUtil.createEntrySet = function(originalEntries) { |
return entriesPromise.then(function(entries) { |
return entries.filter(function(entry) { |
+ // Currently the gallery doesn't support mime types, so checking by |
+ // file extensions is enough. |
return FileType.isImage(entry) || FileType.isRaw(entry); |
}).sort(function(a, b) { |
return a.name.localeCompare(b.name); |