add hidden pref for enabling/disabling connector
This commit is contained in:
parent
908b96ccc4
commit
5bd30580c5
|
@ -476,7 +476,7 @@ var Zotero = new function(){
|
||||||
// Initialize various services
|
// Initialize various services
|
||||||
Zotero.Integration.init();
|
Zotero.Integration.init();
|
||||||
|
|
||||||
if(Zotero.isStandalone) {
|
if(Zotero.Prefs.get("connector.enabled")) {
|
||||||
Zotero.Connector.init();
|
Zotero.Connector.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -796,6 +796,9 @@ var Zotero = new function(){
|
||||||
Zotero.Prefs.set('dataDir', file.persistentDescriptor);
|
Zotero.Prefs.set('dataDir', file.persistentDescriptor);
|
||||||
Zotero.Prefs.set('lastDataDir', file.path);
|
Zotero.Prefs.set('lastDataDir', file.path);
|
||||||
Zotero.Prefs.set('useDataDir', true);
|
Zotero.Prefs.set('useDataDir', true);
|
||||||
|
|
||||||
|
// Enable connector by default, even if it was disabled
|
||||||
|
Zotero.Prefs.set('connector.enabled', true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -111,6 +111,9 @@ pref("extensions.zotero.connector.port", 23119); // ascii "ZO"
|
||||||
// Zeroconf
|
// Zeroconf
|
||||||
pref("extensions.zotero.zeroconf.server.enabled", false);
|
pref("extensions.zotero.zeroconf.server.enabled", false);
|
||||||
|
|
||||||
|
// Connector
|
||||||
|
pref("extensions.zotero.connector.enabled", false);
|
||||||
|
|
||||||
// Zotero Commons
|
// Zotero Commons
|
||||||
pref("extensions.zotero.commons.enabled", false);
|
pref("extensions.zotero.commons.enabled", false);
|
||||||
pref("extensions.zotero.commons.accessKey", '');
|
pref("extensions.zotero.commons.accessKey", '');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user