Use config URL for all repo requests, and move config to separate file

This commit is contained in:
Dan Stillman 2014-12-09 18:37:43 -05:00
parent c28ef6f2d6
commit 3a058c68ed
8 changed files with 31 additions and 25 deletions

19
resource/config.js Normal file
View 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"];