commit 7c64666167819c91597942f4457088b0c3c0566e
parent c28c8c820b139315c175a88240477657b5082021
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 22 Feb 2018 02:01:05 -0500
Use separate subdomain for recognizer requests for now
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git 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
@@ -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',