Refuse to open preferences in connector mode and close preferences when Zotero Standalone is opened
This commit is contained in:
parent
0e1df8b8b4
commit
5f89402ce6
1 changed files with 10 additions and 0 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue