fix automatic import based on MIME type
This commit is contained in:
parent
5ddd33c1b7
commit
d850b290aa
|
@ -1087,11 +1087,7 @@ Zotero.Translate.Import.prototype._loadTranslator = function(translator) {
|
||||||
err = e;
|
err = e;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(this.location) {
|
if(Zotero.Translate.IO.Read && this.location && this.location instanceof Components.interfaces.nsIFile) {
|
||||||
if(!Zotero.Translate.IO.Read) {
|
|
||||||
throw "Translate: reading from files is not supported in this build of Zotero. Use setString() to perform import.";
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this._io = new Zotero.Translate.IO.Read(this.location, dataMode);
|
this._io = new Zotero.Translate.IO.Read(this.location, dataMode);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user