Use separate subdomain for recognizer requests for now

This commit is contained in:
Dan Stillman 2018-02-22 02:01:05 -05:00
parent c28c8c820b
commit 7c64666167
2 changed files with 4 additions and 1 deletions

View file

@ -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 += '/';

View file

@ -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',