Fix update error cancelling document import

Closes #1694
This commit is contained in:
Dan Stillman 2019-05-14 23:43:14 -04:00
parent b9671ade36
commit 222bc4f25d

View file

@ -1636,9 +1636,10 @@ Zotero.Integration.Session.prototype.importDocument = async function() {
Zotero.getString('general.moreInformation'), null, {});
if (result == 1) {
throw new Zotero.Exception.UserCancelled("the document import");
} else if (result == 2) {
}
if (result == 2) {
Zotero.launchURL(importExportWikiURL);
return;
throw new Zotero.Exception.UserCancelled("the document import");
}
Zotero.debug("Integration: Importing the document");
var timer = new Zotero.Integration.Timer();