add getActiveZoteroPane() call to global Zotero object
This commit is contained in:
parent
25fbec095f
commit
3bcd421f07
1 changed files with 7 additions and 0 deletions
|
@ -122,6 +122,13 @@ var Zotero = new function(){
|
||||||
Zotero.DB.query(sql, val);
|
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) {
|
this.getLocalUserKey = function (generate) {
|
||||||
if (_localUserKey) {
|
if (_localUserKey) {
|
||||||
return _localUserKey;
|
return _localUserKey;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue