add hidden pref for enabling/disabling connector

This commit is contained in:
Simon Kornblith 2010-10-02 20:08:16 +00:00
parent 908b96ccc4
commit 5bd30580c5
2 changed files with 7 additions and 1 deletions

View file

@ -476,7 +476,7 @@ var Zotero = new function(){
// Initialize various services
Zotero.Integration.init();
if(Zotero.isStandalone) {
if(Zotero.Prefs.get("connector.enabled")) {
Zotero.Connector.init();
}
@ -796,6 +796,9 @@ var Zotero = new function(){
Zotero.Prefs.set('dataDir', file.persistentDescriptor);
Zotero.Prefs.set('lastDataDir', file.path);
Zotero.Prefs.set('useDataDir', true);
// Enable connector by default, even if it was disabled
Zotero.Prefs.set('connector.enabled', true);
break;
}
else {

View file

@ -111,6 +111,9 @@ pref("extensions.zotero.connector.port", 23119); // ascii "ZO"
// Zeroconf
pref("extensions.zotero.zeroconf.server.enabled", false);
// Connector
pref("extensions.zotero.connector.enabled", false);
// Zotero Commons
pref("extensions.zotero.commons.enabled", false);
pref("extensions.zotero.commons.accessKey", '');