Use config URL for all repo requests, and move config to separate file
This commit is contained in:
parent
c28ef6f2d6
commit
3a058c68ed
8 changed files with 31 additions and 25 deletions
19
resource/config.js
Normal file
19
resource/config.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
var ZOTERO_CONFIG = {
|
||||
GUID: 'zotero@chnm.gmu.edu',
|
||||
REPOSITORY_URL: 'https://repo.zotero.org/repo/',
|
||||
REPOSITORY_CHECK_INTERVAL: 86400, // 24 hours
|
||||
REPOSITORY_RETRY_INTERVAL: 3600, // 1 hour
|
||||
BASE_URI: 'http://zotero.org/',
|
||||
WWW_BASE_URL: 'http://www.zotero.org/',
|
||||
PROXY_AUTH_URL: 'https://s3.amazonaws.com/zotero.org/proxy-auth',
|
||||
SYNC_URL: 'https://sync.zotero.org/',
|
||||
API_URL: 'https://api.zotero.org/',
|
||||
API_VERSION: 2,
|
||||
PREF_BRANCH: 'extensions.zotero.',
|
||||
BOOKMARKLET_ORIGIN: 'https://www.zotero.org',
|
||||
HTTP_BOOKMARKLET_ORIGIN: 'http://www.zotero.org',
|
||||
BOOKMARKLET_URL: 'https://www.zotero.org/bookmarklet/',
|
||||
VERSION: '4.0.24.1.SOURCE'
|
||||
};
|
||||
|
||||
EXPORTED_SYMBOLS = ["ZOTERO_CONFIG"];
|
Loading…
Add table
Add a link
Reference in a new issue