Skip to content

Commit b82ca09

Browse files
committed
Update viewable_extensions
1 parent 5841666 commit b82ca09

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

notebook/static/tree/js/notebooklist.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,10 +558,8 @@ define([
558558
var html_types = ['htm', 'html', 'xhtml', 'xml', 'mht', 'mhtml'];
559559
var media_extension = ['3gp', 'avi', 'mov', 'mp4', 'm4v', 'm4a', 'mp3', 'mkv', 'ogv', 'ogm', 'ogg', 'oga', 'webm', 'wav'];
560560
var image_type = ['bmp', 'gif', 'jpg', 'jpeg', 'png', 'webp'];
561-
var archive_type = ['zip', 'rar'];
562-
var other_type = ['txt', 'pdf', 'ico'];
563-
var office_types = ['doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx'];
564-
var viewable_extensions = [].concat(html_types, media_extension, image_type, archive_type, other_type, office_types);
561+
var other_type = ['ico'];
562+
var viewable_extensions = [].concat(html_types, media_extension, image_type, other_type);
565563
return model.mimetype === 'text/html'
566564
|| includes_extension(model.path, viewable_extensions);
567565
};

0 commit comments

Comments
 (0)