Workaround for "mimeType is undefined" import error

This commit is contained in:
Dan Stillman 2009-05-14 18:39:35 +00:00
parent 91459f95f7
commit 3e7995fee5

View File

@ -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)) {