Browse Source

Update preview_generator.js

pull/5/head
Mathias Markl 8 years ago
committed by GitHub
parent
commit
caf57660ca
  1. 6
      muk_web_preview_image/static/src/js/preview_generator.js

6
muk_web_preview_image/static/src/js/preview_generator.js

@ -32,7 +32,9 @@ var ImageHandler = PreviewHandler.extend({
checkExtension: function(extension) {
return ['.cod', '.ras', '.fif', '.gif', '.ief', '.jpeg', '.jpg', '.jpe', '.png', '.tiff',
'.tif', '.mcf', '.wbmp', '.fh4', '.fh5', '.fhc', '.ico', '.pnm', '.pbm', '.pgm',
'.ppm', '.rgb', '.xwd', '.xbm', '.xpm'].includes(extension);
'.ppm', '.rgb', '.xwd', '.xbm', '.xpm', 'cod', 'ras', 'fif', 'gif', 'ief', 'jpeg',
'jpg', 'jpe', 'png', 'tiff', '.tif', 'mcf', 'wbmp', 'fh4', 'fh5', 'fhc', 'ico',
'pnm', 'pbm', 'pgm', '.ppm', 'rgb', 'xwd', 'xbm', 'xpm'].includes(extension);
},
checkType: function(mimetype) {
return ['image/cis-cod', 'image/cmu-raster', 'image/fif', 'image/gif', 'image/ief', 'image/jpeg',
@ -61,4 +63,4 @@ PreviewGenerator.include({
},
});
});
});
Loading…
Cancel
Save