diff --git a/chrome/content/zotero/fileInterface.js b/chrome/content/zotero/fileInterface.js index 2317b71c86..9e0e228048 100644 --- a/chrome/content/zotero/fileInterface.js +++ b/chrome/content/zotero/fileInterface.js @@ -857,7 +857,7 @@ var Zotero_File_Interface = new function() { this.authenticateMendeleyOnlinePoll = function (win) { if (win && win[0] && win[0].location) { - const matchResult = win[0].location.toString().match(/(?:\?|&)code=(.*?)(?:&|$)/i); + const matchResult = win[0].location.toString().match(/mendeley_oauth_redirect.html(?:.*?)(?:\?|&)code=(.*?)(?:&|$)/i); if (matchResult) { const mendeleyCode = matchResult[1]; Zotero.getMainWindow().setTimeout(() => this.showImportWizard({ mendeleyCode }), 0); diff --git a/chrome/content/zotero/standalone/basicViewer.xul b/chrome/content/zotero/standalone/basicViewer.xul index 67c7f3f8a4..91b458aa83 100644 --- a/chrome/content/zotero/standalone/basicViewer.xul +++ b/chrome/content/zotero/standalone/basicViewer.xul @@ -155,7 +155,7 @@ - +