mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
Don't assume that application/ mime types are editable
The application media type includes many common binary files like application/zip and application/pdf.
This commit is contained in:
parent
38b789a7d8
commit
75f1b9ae26
@ -545,7 +545,7 @@ define([
|
||||
};
|
||||
|
||||
NotebookList.prototype._is_editable = function(model) {
|
||||
return (includes_mimetype('text/', model.mimetype) || includes_mimetype('application/', model.mimetype))
|
||||
return includes_mimetype('text/', model.mimetype)
|
||||
|| includes_extension(model.path, NotebookList.editable_extensions);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user