Use separate subdomain for recognizer requests for now
This commit is contained in:
parent
c28c8c820b
commit
7c64666167
2 changed files with 4 additions and 1 deletions
|
@ -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 += '/';
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue