Workaround for "mimeType is undefined" import error
This commit is contained in:
parent
91459f95f7
commit
3e7995fee5
|
@ -1196,6 +1196,11 @@ Zotero.Attachments = new function(){
|
|||
* asynchronously after the fact
|
||||
*/
|
||||
function _postProcessFile(itemID, file, mimeType){
|
||||
// Don't try to process if MIME type is unknown
|
||||
if (!mimeType) {
|
||||
return;
|
||||
}
|
||||
|
||||
// MIME types that get cached by the fulltext indexer can just be
|
||||
// indexed directly
|
||||
if (Zotero.Fulltext.isCachedMIMEType(mimeType)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user