Add Zotero.clientName, set to "Zotero" by default
We should eventually replace all hard-coded uses of "Zotero" with this for use by unofficial versions (which legally can't be called "Zotero").
This commit is contained in:
parent
003db7c894
commit
8371749bd1
2 changed files with 3 additions and 0 deletions
|
@ -213,6 +213,8 @@ Components.utils.import("resource://gre/modules/Services.jsm");
|
|||
|
||||
this.mainThread = Components.classes["@mozilla.org/thread-manager;1"].getService().mainThread;
|
||||
|
||||
this.clientName = ZOTERO_CONFIG.CLIENT_NAME;
|
||||
|
||||
var appInfo = Components.classes["@mozilla.org/xre/app-info;1"]
|
||||
.getService(Components.interfaces.nsIXULAppInfo);
|
||||
this.platformVersion = appInfo.platformVersion;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
var ZOTERO_CONFIG = {
|
||||
GUID: 'zotero@chnm.gmu.edu',
|
||||
CLIENT_NAME: 'Zotero',
|
||||
REPOSITORY_URL: 'https://repo.zotero.org/repo/',
|
||||
REPOSITORY_CHECK_INTERVAL: 86400, // 24 hours
|
||||
REPOSITORY_RETRY_INTERVAL: 3600, // 1 hour
|
||||
|
|
Loading…
Reference in a new issue