Don't throw an error trying to index an unindexable text file (e.g., text/xml)
This commit is contained in:
parent
1e2dc0035f
commit
c41f754138
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue