add getActiveZoteroPane() call to global Zotero object
This commit is contained in:
parent
25fbec095f
commit
3bcd421f07
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user