Don't throw an error trying to index an unindexable text file (e.g., text/xml)

This commit is contained in:
Dan Stillman 2010-09-29 04:09:08 +00:00
parent 1e2dc0035f
commit c41f754138

View file

@ -297,8 +297,8 @@ Zotero.Fulltext = new function(){
Zotero.debug("Indexing document '" + document.title + "'");
if (document.contentType.indexOf('text/') !== 0) {
Zotero.debug('File is not text in indexDocument()', 2);
if (!document.body) {
Zotero.debug("Cannot index " + document.contentType + " file in indexDocument()", 2);
return false;
}