From b82ca097824510e87ca0b4f3f281e9d3897fdfc7 Mon Sep 17 00:00:00 2001 From: Grant Nestor Date: Mon, 9 Oct 2017 17:36:01 -0700 Subject: [PATCH] Update viewable_extensions --- notebook/static/tree/js/notebooklist.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/notebook/static/tree/js/notebooklist.js b/notebook/static/tree/js/notebooklist.js index 495ad1246..99458337a 100644 --- a/notebook/static/tree/js/notebooklist.js +++ b/notebook/static/tree/js/notebooklist.js @@ -558,10 +558,8 @@ define([ var html_types = ['htm', 'html', 'xhtml', 'xml', 'mht', 'mhtml']; var media_extension = ['3gp', 'avi', 'mov', 'mp4', 'm4v', 'm4a', 'mp3', 'mkv', 'ogv', 'ogm', 'ogg', 'oga', 'webm', 'wav']; var image_type = ['bmp', 'gif', 'jpg', 'jpeg', 'png', 'webp']; - var archive_type = ['zip', 'rar']; - var other_type = ['txt', 'pdf', 'ico']; - var office_types = ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx']; - var viewable_extensions = [].concat(html_types, media_extension, image_type, archive_type, other_type, office_types); + var other_type = ['ico']; + var viewable_extensions = [].concat(html_types, media_extension, image_type, other_type); return model.mimetype === 'text/html' || includes_extension(model.path, viewable_extensions); };