add getActiveZoteroPane() call to global Zotero object

This commit is contained in:
Simon Kornblith 2011-01-31 20:28:42 +00:00
parent 25fbec095f
commit 3bcd421f07

View File

@ -122,6 +122,13 @@ var Zotero = new function(){
Zotero.DB.query(sql, val);
});
this.getActiveZoteroPane = function() {
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator);
var win = wm.getMostRecentWindow("navigator:browser");
return win.getActiveZoteroPane();
};
this.getLocalUserKey = function (generate) {
if (_localUserKey) {
return _localUserKey;