Refuse to open preferences in connector mode and close preferences when Zotero Standalone is opened

This commit is contained in:
Simon Kornblith 2012-01-27 05:59:03 -05:00
parent 0e1df8b8b4
commit 5f89402ce6

View file

@ -74,6 +74,16 @@ var Zotero_Preferences = {
function init()
{
if(Zotero.isConnector) {
Zotero.activateStandalone();
window.close();
return;
}
observerService.addObserver(function() {
if(Zotero.isConnector) window.close();
}, "zotero-reloaded", false);
// Display the appropriate modifier keys for the platform
var rows = document.getElementById('zotero-prefpane-keys').getElementsByTagName('row');
for (var i=0; i<rows.length; i++) {