diff --git a/chrome/content/zotero/xpcom/recognizePDF.js b/chrome/content/zotero/xpcom/recognizePDF.js index 0fb2ee9611..3e072751b6 100644 --- a/chrome/content/zotero/xpcom/recognizePDF.js +++ b/chrome/content/zotero/xpcom/recognizePDF.js @@ -329,7 +329,9 @@ Zotero.RecognizePDF = new function () { } async function _query(json) { - let uri = Zotero.Prefs.get("api.url") || ZOTERO_CONFIG.API_URL; + // TODO: Use main API URL for recognizer server + //let uri = Zotero.Prefs.get("api.url") || ZOTERO_CONFIG.API_URL; + let uri = Zotero.Prefs.get("api.url") || ZOTERO_CONFIG.RECOGNIZE_URL; if (!uri.endsWith('/')) { uri += '/'; diff --git a/resource/config.js b/resource/config.js index 25efdcd4d4..3a52a6f933 100644 --- a/resource/config.js +++ b/resource/config.js @@ -11,6 +11,7 @@ var ZOTERO_CONFIG = { PROXY_AUTH_URL: 'https://s3.amazonaws.com/zotero.org/proxy-auth', API_URL: 'https://api.zotero.org/', STREAMING_URL: 'wss://stream.zotero.org/', + RECOGNIZE_URL: 'https://recognize.zotero.org/', API_VERSION: 3, PREF_BRANCH: 'extensions.zotero.', BOOKMARKLET_ORIGIN: 'https://www.zotero.org',