From 1ea31825b512471c13b4717971ff1f5f680727fa Mon Sep 17 00:00:00 2001 From: Mathias Markl Date: Sat, 12 May 2018 18:24:38 +0200 Subject: [PATCH] . --- muk_web_preview/doc/index.rst | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/muk_web_preview/doc/index.rst b/muk_web_preview/doc/index.rst index 5a61479..9bd8c4c 100644 --- a/muk_web_preview/doc/index.rst +++ b/muk_web_preview/doc/index.rst @@ -49,17 +49,10 @@ PreviewHandler var ImageHandler = PreviewHandler.BaseHandler.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', '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); + return ['.cod', '.ras', '.fif', '.gif', ...].includes(extension); }, checkType: function(mimetype) { - return ['image/cis-cod', 'image/cmu-raster', 'image/fif', 'image/gif', 'image/ief', 'image/jpeg', - 'image/png', 'image/tiff', 'image/vasa', 'image/vnd.wap.wbmp', 'image/x-freehand', 'image/x-icon', - 'image/x-portable-anymap', 'image/x-portable-bitmap', 'image/x-portable-graymap', 'image/x-portable-pixmap', - 'image/x-rgb', 'image/x-windowdump', 'image/x-xbitmap', 'image/x-xpixmap'].includes(mimetype); + return ['image/cis-cod', 'image/fif', ...].includes(mimetype); }, createHtml: function(url, mimetype, extension, title) { var result = $.Deferred();