Skip to content

Commit

Permalink
Use separate subdomain for recognizer requests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Feb 22, 2018
1 parent c28c8c8 commit 7c64666
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chrome/content/zotero/xpcom/recognizePDF.js
Expand Up @@ -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 += '/';
Expand Down
1 change: 1 addition & 0 deletions resource/config.js
Expand Up @@ -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',
Expand Down

0 comments on commit 7c64666

Please sign in to comment.