commit 8371749bd118bd2fde124a6a8bd7a1fae579f50d
parent 003db7c894d274105b0c70b955889dc0c1bf8365
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 23 Feb 2015 03:31:52 -0500
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").
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js
@@ -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;
diff --git a/resource/config.js b/resource/config.js
@@ -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