mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-17 12:39:54 +08:00
Merge pull request #2913 from gnestor/issue-2203-patch
Update viewable_extensions
This commit is contained in:
commit
2ee51ab09f
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user